From: Austin Clements Date: Tue, 18 Nov 2014 14:54:50 +0000 (-0500) Subject: [dev.cc] runtime: two missed references to "M stack" X-Git-Tag: go1.5beta1~2688^2~39 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0e8fed098c164a832fbe9541a6d3c7bb952c9b0c;p=gostls13.git [dev.cc] runtime: two missed references to "M stack" LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/177940043 --- diff --git a/src/runtime/asm_amd64p32.s b/src/runtime/asm_amd64p32.s index cead3cd075..b8370efd36 100644 --- a/src/runtime/asm_amd64p32.s +++ b/src/runtime/asm_amd64p32.s @@ -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 diff --git a/src/runtime/panic.go b/src/runtime/panic.go index 8929467025..95e780b1d9 100644 --- a/src/runtime/panic.go +++ b/src/runtime/panic.go @@ -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))