]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.cc] runtime: two missed references to "M stack"
authorAustin Clements <austin@google.com>
Tue, 18 Nov 2014 14:54:50 +0000 (09:54 -0500)
committerAustin Clements <austin@google.com>
Tue, 18 Nov 2014 14:54:50 +0000 (09:54 -0500)
LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/177940043

src/runtime/asm_amd64p32.s
src/runtime/panic.go

index cead3cd075d11beeb0a97e49b91d4cb7d4df7c55..b8370efd363cf7effa885d30d92dd69443e70d31 100644 (file)
@@ -169,7 +169,7 @@ TEXT runtime·mcall(SB), NOSPLIT, $0-4
 // of the G stack.  We need to distinguish the routine that
 // lives at the bottom of the G stack from the one that lives
 // at the top of the system stack because the one at the top of
-// the M stack terminates the stack walk (see topofstack()).
+// the system stack terminates the stack walk (see topofstack()).
 TEXT runtime·systemstack_switch(SB), NOSPLIT, $0-0
        RET
 
index 8929467025e5f7b2276a473374a33c9bcdf58129..95e780b1d954de26a12c7df8ad0d9232caa613bd 100644 (file)
@@ -162,7 +162,7 @@ func init() {
 
 // Allocate a Defer, usually using per-P pool.
 // Each defer must be released with freedefer.
-// Note: runs on M stack
+// Note: runs on g0 stack
 func newdefer(siz int32) *_defer {
        var d *_defer
        sc := deferclass(uintptr(siz))