diff options
| author | Cuong Manh Le <cuong.manhle.vn@gmail.com> | 2022-08-18 00:21:36 +0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-08-18 17:09:37 +0000 |
| commit | c82bbc0e8edbbebe47e92729e8f3f1b60d380b5b (patch) | |
| tree | 4d4cffb35637aa3fc3d630c610a0b56874b25848 /src/runtime/runtime2.go | |
| parent | 03e1870b635dbfa54b6ee3624c435daf2a6b3b1f (diff) | |
| download | go-c82bbc0e8edbbebe47e92729e8f3f1b60d380b5b.tar.xz | |
runtime: convert timer0When/timerModifiedEarliest to atomic.Int64
So they match with when/nextwhen fields of timer struct.
Updates #53821
Change-Id: Iad0cceb129796745774facfbbfe5756df3a320b4
Reviewed-on: https://go-review.googlesource.com/c/go/+/423117
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Diffstat (limited to 'src/runtime/runtime2.go')
| -rw-r--r-- | src/runtime/runtime2.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index 21dba96a59..56318e2bce 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -671,13 +671,13 @@ type p struct { // The when field of the first entry on the timer heap. // This is 0 if the timer heap is empty. - timer0When atomic.Uint64 + timer0When atomic.Int64 // The earliest known nextwhen field of a timer with // timerModifiedEarlier status. Because the timer may have been // modified again, there need not be any timer with this value. // This is 0 if there are no timerModifiedEarlier timers. - timerModifiedEarliest atomic.Uint64 + timerModifiedEarliest atomic.Int64 // Per-P GC state gcAssistTime int64 // Nanoseconds in assistAlloc |
