From c82bbc0e8edbbebe47e92729e8f3f1b60d380b5b Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Thu, 18 Aug 2022 00:21:36 +0700 Subject: 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 Reviewed-by: Michael Pratt TryBot-Result: Gopher Robot Reviewed-by: Keith Randall Auto-Submit: Cuong Manh Le --- src/runtime/runtime2.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runtime/runtime2.go') 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 -- cgit v1.3-5-g9baa