aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime2.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2022-07-25 15:20:22 -0400
committerMichael Pratt <mpratt@google.com>2022-08-12 01:52:18 +0000
commit1eeef5d5b4d5fafa96fb0d4aab033fc0c3947e51 (patch)
treea68ef7b0b38289c792d436fcc022dc25bd26e792 /src/runtime/runtime2.go
parent58a1dabfd1b2bbc2a6a9a2e1cda3e98d93d61258 (diff)
downloadgo-1eeef5d5b4d5fafa96fb0d4aab033fc0c3947e51.tar.xz
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>
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 7b43358ba1..bf1b53cb12 100644
--- a/src/runtime/runtime2.go
+++ b/src/runtime/runtime2.go
@@ -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