[dev.cc] runtime: two missed references to "M stack"

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/177940043
This commit is contained in:
Austin Clements 2014-11-18 09:54:50 -05:00
parent 2c2a6df4e9
commit 0e8fed098c
2 changed files with 2 additions and 2 deletions

View file

@ -169,7 +169,7 @@ TEXT runtime·mcall(SB), NOSPLIT, $0-4
// of the G stack. We need to distinguish the routine that // of the G stack. We need to distinguish the routine that
// lives at the bottom of the G stack from the one that lives // 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 // 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 TEXT runtime·systemstack_switch(SB), NOSPLIT, $0-0
RET RET

View file

@ -162,7 +162,7 @@ func init() {
// Allocate a Defer, usually using per-P pool. // Allocate a Defer, usually using per-P pool.
// Each defer must be released with freedefer. // Each defer must be released with freedefer.
// Note: runs on M stack // Note: runs on g0 stack
func newdefer(siz int32) *_defer { func newdefer(siz int32) *_defer {
var d *_defer var d *_defer
sc := deferclass(uintptr(siz)) sc := deferclass(uintptr(siz))