aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/time.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2019-04-05 16:53:13 -0700
committerIan Lance Taylor <iant@golang.org>2019-10-21 23:18:36 +0000
commit6b3bb4ba3bcc190200af4f1eedf454658094097f (patch)
tree18763c55226a0511acf6339634bd905093f8ff7f /src/runtime/time.go
parent9989221ac1853aeda5795952a744de522699494f (diff)
downloadgo-6b3bb4ba3bcc190200af4f1eedf454658094097f.tar.gz
go-6b3bb4ba3bcc190200af4f1eedf454658094097f.zip
runtime: handle timers on P's in procresize/(*pp).destroy
Updates #6239 Updates #27707 Change-Id: I52cab8bf3dc8c552463725fc1d9e4e6b12230b03 Reviewed-on: https://go-review.googlesource.com/c/go/+/171828 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/runtime/time.go')
-rw-r--r--src/runtime/time.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/runtime/time.go b/src/runtime/time.go
index 1bbb5684cb..0148f47a9e 100644
--- a/src/runtime/time.go
+++ b/src/runtime/time.go
@@ -325,6 +325,14 @@ func timerproc(tb *timersBucket) {
}
}
+// moveTimers moves a slice of timers to pp. The slice has been taken
+// from a different P.
+// This is currently called when the world is stopped, but it could
+// work as long as the timers for pp are locked.
+func moveTimers(pp *p, timers []*timer) {
+ throw("movetimers: not yet implemented")
+}
+
// adjusttimers looks through the timers in the current P's heap for
// any timers that have been modified to run earlier, and puts them in
// the correct place in the heap.