]> Cypherpunks repositories - gostls13.git/commit
runtime: add new modtimer function
authorIan Lance Taylor <iant@golang.org>
Thu, 11 Apr 2019 04:04:36 +0000 (21:04 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 22 Oct 2019 19:35:04 +0000 (19:35 +0000)
commit48eb79ec2197aeea0eb43597b00cad1ebcad61d2
treeddfba9b5bb05e6d03dd4cb6482a13b94212ebafd
parenta813d3c788b4ec58032616e8d269ee65d1b10085
runtime: add new modtimer function

This adds a new field to P, adjustTimers, that tells the P that one of
its existing timers was modified to be earlier, and that it therefore
needs to resort them.

Updates #27707

Change-Id: I4c5f5b51ed116f1d898d3f87cdddfa1b552337f8
Reviewed-on: https://go-review.googlesource.com/c/go/+/171832
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/proc.go
src/runtime/runtime2.go
src/runtime/time.go