runtime: convert schedt.nmspinning to atomic type

Note that this converts nmspinning from uint32 to int32 for consistency
with the other count fields in schedt.

For #53821.

Change-Id: Ia6ca7a2b476128eda3b68e9f0c7775ae66c0c744
Reviewed-on: https://go-review.googlesource.com/c/go/+/419446
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Michael Pratt <mpratt@google.com>
Reviewed-by: Austin Clements <austin@google.com>
This commit is contained in:
Michael Pratt 2022-07-25 15:20:22 -04:00
parent 58a1dabfd1
commit 1eeef5d5b4
3 changed files with 18 additions and 18 deletions

View file

@ -779,7 +779,7 @@ type schedt struct {
pidle puintptr // idle p's
npidle atomic.Int32
nmspinning uint32 // See "Worker thread parking/unparking" comment in proc.go.
nmspinning atomic.Int32 // See "Worker thread parking/unparking" comment in proc.go.
// Global runnable queue.
runq gQueue