aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/time.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2021-07-22 12:50:30 -0700
committerMatthew Dempsky <mdempsky@google.com>2021-07-22 12:50:31 -0700
commita27e325c59691fba23c094ab07fd5735737ac8ba (patch)
tree2dc7632b501359c291d95d7d15cd37f347727cd8 /src/runtime/time.go
parent5cb84f0604797df436d8fde548d4f797b3a6c245 (diff)
parent798ec73519a7226d6d436e42498a54aed23b8468 (diff)
downloadgo-a27e325c59691fba23c094ab07fd5735737ac8ba.tar.gz
go-a27e325c59691fba23c094ab07fd5735737ac8ba.zip
[dev.typeparams] all: merge master (798ec73) into dev.typeparams
Merge List: + 2021-07-22 798ec73519 runtime: don't clear timerModifiedEarliest if adjustTimers is 0 + 2021-07-22 fdb45acd1f runtime: move mem profile sampling into m-acquired section + 2021-07-21 3e48c0381f reflect: add missing copyright header + 2021-07-21 48c88f1b1b reflect: add Value.CanConvert + 2021-07-20 9e26569293 cmd/go: don't add C compiler ID to hash for standard library + 2021-07-20 d568e6e075 runtime/debug: skip TestPanicOnFault on netbsd/arm Change-Id: I87e1cd4614bb3b00807f18dfdd02664dcaecaebd
Diffstat (limited to 'src/runtime/time.go')
-rw-r--r--src/runtime/time.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/runtime/time.go b/src/runtime/time.go
index 90e9b1139f..2f791c4ad8 100644
--- a/src/runtime/time.go
+++ b/src/runtime/time.go
@@ -669,11 +669,6 @@ func adjusttimers(pp *p, now int64) {
if verifyTimers {
verifyTimerHeap(pp)
}
- // There are no timers to adjust, so it is safe to clear
- // timerModifiedEarliest. Do so in case it is stale.
- // Everything will work if we don't do this,
- // but clearing here may save future calls to adjusttimers.
- atomic.Store64(&pp.timerModifiedEarliest, 0)
return
}