From 3efe36d4c46c609b036f3d6eb209788aa71ec57f Mon Sep 17 00:00:00 2001 From: Todd Neal Date: Mon, 24 Aug 2015 19:11:35 -0500 Subject: 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 --- src/runtime/runtime2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/runtime2.go') diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index 57cd869d88..fbd43d21da 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -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 -- cgit v1.3-5-g9baa