Please sign in to comment.
[release-branch.go1.9] 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 <firstname.lastname@example.org> TryBot-Result: Gobot Gobot <email@example.com> Reviewed-by: Ian Lance Taylor <firstname.lastname@example.org> Reviewed-by: Austin Clements <email@example.com> Reviewed-on: https://go-review.googlesource.com/73491 TryBot-Result: Russ Cox <firstname.lastname@example.org>
- Loading branch information...
Showing with 10 additions and 1 deletion.