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:
Michael Pratt 2022-07-25 15:39:07 -04:00
parent 88ef50e662
commit 09cc9bac72
2 changed files with 13 additions and 13 deletions

View file

@ -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