aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime2.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2022-07-19 13:34:29 -0400
committerMichael Pratt <mpratt@google.com>2022-08-12 01:39:14 +0000
commitb464708b463b104849a951af54352c8a894bfbc4 (patch)
treebc894774b13c6e6b6379de20cfd3c3194b02c193 /src/runtime/runtime2.go
parentbd302502d39b6172bf3db6abfa49fdcaa124ee50 (diff)
downloadgo-b464708b463b104849a951af54352c8a894bfbc4.tar.xz
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 <austin@google.com> Run-TryBot: Michael Pratt <mpratt@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime/runtime2.go')
-rw-r--r--src/runtime/runtime2.go2
1 files changed, 1 insertions, 1 deletions
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