aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime2.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2015-12-17 16:31:56 -0800
committerAustin Clements <austin@google.com>2015-12-18 17:08:52 +0000
commitd446ba99a4e2b147de3afc29ff8d6ddfa4041203 (patch)
treef7fa275374ec1a55e8402aa1172872eda3278c3c /src/runtime/runtime2.go
parentf90b48e0d347077cee4b6ea81671bfa04ddf681b (diff)
downloadgo-d446ba99a4e2b147de3afc29ff8d6ddfa4041203.tar.xz
runtime: document stack barrier synchronization rules
Change-Id: I545e53561f37bceabd26d814d272cecc3ff19847 Reviewed-on: https://go-review.googlesource.com/18024 Reviewed-by: Russ Cox <rsc@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 4a4d5f81ba..9549d1f531 100644
--- a/src/runtime/runtime2.go
+++ b/src/runtime/runtime2.go
@@ -233,7 +233,7 @@ type g struct {
sched gobuf
syscallsp uintptr // if status==Gsyscall, syscallsp = sched.sp to use during gc
syscallpc uintptr // if status==Gsyscall, syscallpc = sched.pc to use during gc
- stkbar []stkbar // stack barriers, from low to high
+ stkbar []stkbar // stack barriers, from low to high (see top of mstkbar.go)
stkbarPos uintptr // index of lowest stack barrier not hit
stktopsp uintptr // expected sp at top of stack, to check in traceback
param unsafe.Pointer // passed parameter on wakeup