From b464708b463b104849a951af54352c8a894bfbc4 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Tue, 19 Jul 2022 13:34:29 -0400 Subject: runtime: convert schedt.goidgen to atomic type For #53821. Change-Id: I84c96ade5982b8e68d1d1787bf1bfa16a17a4fb4 Reviewed-on: https://go-review.googlesource.com/c/go/+/419439 Reviewed-by: Austin Clements Run-TryBot: Michael Pratt TryBot-Result: Gopher Robot --- src/runtime/runtime2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/runtime2.go') diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index e1788223e7..a9098b8100 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -759,7 +759,7 @@ type p struct { type schedt struct { // accessed atomically. keep at top to ensure alignment on 32-bit systems. - goidgen uint64 + goidgen atomic.Uint64 lastpoll uint64 // time of last network poll, 0 if currently polling pollUntil uint64 // time to which current poll is sleeping -- cgit v1.3