diff options
| author | Russ Cox <rsc@golang.org> | 2017-10-25 11:13:23 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2017-10-25 17:10:20 +0000 |
| commit | 986582126a371ff927182ba6e61e364c1341171a (patch) | |
| tree | 59f623208e36d1195424c731ee00660111fb8d3e /src/database/sql/sql_test.go | |
| parent | eb7e84500ffef1f72958a94f135774f6c25b7aad (diff) | |
| download | go-986582126a371ff927182ba6e61e364c1341171a.tar.xz | |
runtime: avoid monotonic time zero on systems with low-res timers
Otherwise low-res timers cause problems at call sites that expect to
be able to use 0 as meaning "no time set" and therefore expect that
nanotime never returns 0 itself. For example, sched.lastpoll == 0
means no last poll.
Fixes #22394.
Change-Id: Iea28acfddfff6f46bc90f041ec173e0fea591285
Reviewed-on: https://go-review.googlesource.com/73410
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/database/sql/sql_test.go')
0 files changed, 0 insertions, 0 deletions
