aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime2.go
diff options
context:
space:
mode:
authorYongjian Xu <i3dmaster@gmail.com>2015-06-09 22:51:25 -0700
committerMinux Ma <minux@golang.org>2015-06-10 06:15:20 +0000
commit93e57a22d5d3c9006b144ddfd9d675967fd810d0 (patch)
tree8b43b819b0065d224e98d21ddd031a7526d1e286 /src/runtime/runtime2.go
parente861c9ba36186b223c2550556e279c3d9ba467fe (diff)
downloadgo-93e57a22d5d3c9006b144ddfd9d675967fd810d0.tar.xz
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>
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 8b0e1081da..81555af6af 100644
--- a/src/runtime/runtime2.go
+++ b/src/runtime/runtime2.go
@@ -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.