mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: correct a drifted comment in referencing m->locked.
Change-Id: Ida4b98aa63e57594fa6fa0b8178106bac9b3cd19 Reviewed-on: https://go-review.googlesource.com/10837 Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
parent
e861c9ba36
commit
93e57a22d5
1 changed files with 1 additions and 1 deletions
|
|
@ -464,7 +464,7 @@ type schedt struct {
|
|||
// The m->locked word holds two pieces of state counting active calls to LockOSThread/lockOSThread.
|
||||
// The low bit (LockExternal) is a boolean reporting whether any LockOSThread call is active.
|
||||
// External locks are not recursive; a second lock is silently ignored.
|
||||
// The upper bits of m->lockedcount record the nesting depth of calls to lockOSThread
|
||||
// The upper bits of m->locked record the nesting depth of calls to lockOSThread
|
||||
// (counting up by LockInternal), popped by unlockOSThread (counting down by LockInternal).
|
||||
// Internal locks can be recursive. For instance, a lock for cgo can occur while the main
|
||||
// goroutine is holding the lock during the initialization phase.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue