aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/time.go
diff options
context:
space:
mode:
authorAndrew Bonventre <andybons@golang.org>2020-02-23 17:28:56 +0000
committerIan Lance Taylor <iant@golang.org>2020-02-23 17:58:14 +0000
commitb0863ce0e6fbcf3e39f25cdd0b9380b3710507ba (patch)
tree0868f8fe06d5c0fa72b4bc22f020ca4435807042 /src/runtime/time.go
parent576cc530c93d416f6fe3a0b8fefac47e83715216 (diff)
downloadgo-b0863ce0e6fbcf3e39f25cdd0b9380b3710507ba.tar.gz
go-b0863ce0e6fbcf3e39f25cdd0b9380b3710507ba.zip
Revert "time: add Ticker.Reset"
This reverts CL 217362 (6e5652bebede2d53484a872f6d1dfeb498b0b50c.) Reason for revert: Causing failures on arm64 bots. See #33184 for more info Change-Id: I72ba40047e4138767d95aaa68842893c3508c52f Reviewed-on: https://go-review.googlesource.com/c/go/+/220638 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/time.go')
-rw-r--r--src/runtime/time.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/runtime/time.go b/src/runtime/time.go
index 9e1129537a..af5db4cc58 100644
--- a/src/runtime/time.go
+++ b/src/runtime/time.go
@@ -233,12 +233,6 @@ func resetTimer(t *timer, when int64) {
resettimer(t, when)
}
-// modTimer modifies an existing timer.
-//go:linkname modTimer time.modTimer
-func modTimer(t *timer, when, period int64, f func(interface{}, uintptr), arg interface{}, seq uintptr) {
- modtimer(t, when, period, f, arg, seq)
-}
-
// Go runtime.
// Ready the goroutine arg.
@@ -408,7 +402,7 @@ func dodeltimer0(pp *p) bool {
}
// modtimer modifies an existing timer.
-// This is called by the netpoll code or time.Ticker.Reset.
+// This is called by the netpoll code.
func modtimer(t *timer, when, period int64, f func(interface{}, uintptr), arg interface{}, seq uintptr) {
if when < 0 {
when = maxWhen