mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: convert g.selectDone to atomic type
On the write side, g.selectDone has been converted from non-atomic to atomic access. For #53821. Change-Id: Iac46bc6acce7eed51dfd990285dd57f0d58b4ae2 Reviewed-on: https://go-review.googlesource.com/c/go/+/425414 Run-TryBot: hopehook <hopehook@qq.com> Reviewed-by: Michael Pratt <mpratt@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
7a1ae605eb
commit
951d2c657d
3 changed files with 3 additions and 3 deletions
|
|
@ -487,7 +487,7 @@ type g struct {
|
|||
cgoCtxt []uintptr // cgo traceback context
|
||||
labels unsafe.Pointer // profiler labels
|
||||
timer *timer // cached timer for time.Sleep
|
||||
selectDone uint32 // are we participating in a select and did someone win the race?
|
||||
selectDone atomic.Uint32 // are we participating in a select and did someone win the race?
|
||||
|
||||
// goroutineProfiled indicates the status of this goroutine's stack for the
|
||||
// current in-progress goroutine profile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue