mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: convert schedt.sysmonwait to atomic type
This converts a few unsynchronized accesses. For #53821. Change-Id: Ie2728779111e3e042696f15648981c5d5a86ca6d Reviewed-on: https://go-review.googlesource.com/c/go/+/419448 Run-TryBot: Michael Pratt <mpratt@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com>
This commit is contained in:
parent
88ef50e662
commit
09cc9bac72
2 changed files with 13 additions and 13 deletions
|
|
@ -820,7 +820,7 @@ type schedt struct {
|
|||
gcwaiting atomic.Bool // gc is waiting to run
|
||||
stopwait int32
|
||||
stopnote note
|
||||
sysmonwait uint32
|
||||
sysmonwait atomic.Bool
|
||||
sysmonnote note
|
||||
|
||||
// safepointFn should be called on each P at the next GC
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue