diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index 0392f2968f..ceb6ff66e2 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -518,9 +518,9 @@ const ( // Values for m.freeWait. const ( - freeMStack = 0 // M done, free stack and reference. - freeMRef = 1 // M done, free reference. - freeMWait = 2 // M still in use. + freeMStack = 0 // M done, free stack and reference. + freeMRef = 1 // M done, free reference. + freeMWait = 2 // M still in use. ) type m struct { @@ -552,8 +552,8 @@ type m struct { blocked bool // m is blocked on a note newSigstack bool // minit on C thread called sigaltstack printlock int8 - incgo bool // m is executing a cgo call - isextra bool // m is an extra m + incgo bool // m is executing a cgo call + isextra bool // m is an extra m freeWait atomic.Uint32 // Whether it is safe to free g0 and delete m (one of freeMRef, freeMStack, freeMWait) fastrand uint64 needextram bool