mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: fix nmspinning comparison
nmspinning has a value range of [0, 2^31-1]. Update the comment to indicate this and fix the comparison so it's not always false. Fixes #11280 Change-Id: Iedaf0654dcba5e2c800645f26b26a1a781ea1991 Reviewed-on: https://go-review.googlesource.com/13877 Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
parent
24be0997a2
commit
3efe36d4c4
2 changed files with 2 additions and 2 deletions
|
|
@ -429,7 +429,7 @@ type schedt struct {
|
|||
|
||||
pidle puintptr // idle p's
|
||||
npidle uint32
|
||||
nmspinning uint32
|
||||
nmspinning uint32 // limited to [0, 2^31-1]
|
||||
|
||||
// Global runnable queue.
|
||||
runqhead guintptr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue