aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/time.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/time.go')
-rw-r--r--src/runtime/time.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/time.go b/src/runtime/time.go
index 4308cc0f0b..3ac60f3aec 100644
--- a/src/runtime/time.go
+++ b/src/runtime/time.go
@@ -99,7 +99,7 @@ func timeSleep(ns int64) {
tb := t.assignBucket()
lock(&tb.lock)
tb.addtimerLocked(t)
- goparkunlock(&tb.lock, waitReasonSleep, traceEvGoSleep, 2)
+ goparkunlock(&tb.lock, "sleep", traceEvGoSleep, 2)
}
// startTimer adds t to the timer heap.
@@ -250,7 +250,7 @@ func timerproc(tb *timersBucket) {
if delta < 0 || faketime > 0 {
// No timers left - put goroutine to sleep.
tb.rescheduling = true
- goparkunlock(&tb.lock, waitReasonTimerGoroutineIdle, traceEvGoBlock, 1)
+ goparkunlock(&tb.lock, "timer goroutine (idle)", traceEvGoBlock, 1)
continue
}
// At least one timer pending. Sleep until then.