aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/proc.go
diff options
context:
space:
mode:
authorCuong Manh Le <cuong.manhle.vn@gmail.com>2022-08-17 14:59:57 +0700
committerCuong Manh Le <cuong.manhle.vn@gmail.com>2022-08-18 01:46:15 +0000
commitbb5d656a3ac78575d9e2c9bed026cc1756fab179 (patch)
treec8aeb18704bf0d9ae4c242137d224819094cda5d /src/runtime/proc.go
parentb30ba3df9ff8969f934bec5016cfce4b91f6ea5b (diff)
downloadgo-bb5d656a3ac78575d9e2c9bed026cc1756fab179.tar.xz
runtime: convert p.timerModifiedEarliest to atomic type
Updates #53821 Change-Id: Iac0d7a3871d9e3ee0ba38ee7ab989faca9c89666 Reviewed-on: https://go-review.googlesource.com/c/go/+/424397 Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Keith Randall <khr@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime/proc.go')
-rw-r--r--src/runtime/proc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go
index f100e321d4..01f9ed5f57 100644
--- a/src/runtime/proc.go
+++ b/src/runtime/proc.go
@@ -3330,7 +3330,7 @@ func checkTimers(pp *p, now int64) (rnow, pollUntil int64, ran bool) {
// If it's not yet time for the first timer, or the first adjusted
// timer, then there is nothing to do.
next := int64(pp.timer0When.Load())
- nextAdj := int64(atomic.Load64(&pp.timerModifiedEarliest))
+ nextAdj := int64(pp.timerModifiedEarliest.Load())
if next == 0 || (nextAdj != 0 && nextAdj < next) {
next = nextAdj
}