From 0e8fed098c164a832fbe9541a6d3c7bb952c9b0c Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Tue, 18 Nov 2014 09:54:50 -0500 Subject: [PATCH] [dev.cc] runtime: two missed references to "M stack" LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/177940043 --- src/runtime/asm_amd64p32.s | 2 +- src/runtime/panic.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)) -- 2.50.0