From: Michael Pratt Date: Wed, 20 Jul 2022 17:20:48 +0000 (-0400) Subject: runtime: fix outdated g.m comment in traceback.go X-Git-Tag: go1.20rc1~1841 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9dbc0f3556;p=gostls13.git runtime: fix outdated g.m comment in traceback.go Change-Id: Idfd02781a9ee550da240ef53898943e8cd37dd64 Reviewed-on: https://go-review.googlesource.com/c/go/+/418574 Run-TryBot: Michael Pratt TryBot-Result: Gopher Robot Reviewed-by: Austin Clements --- diff --git a/src/runtime/traceback.go b/src/runtime/traceback.go index 49147ff838..9a5d9363ff 100644 --- a/src/runtime/traceback.go +++ b/src/runtime/traceback.go @@ -1051,10 +1051,10 @@ func tracebackothers(me *g) { } print("\n") goroutineheader(gp) - // Note: gp.m == g.m occurs when tracebackothers is - // called from a signal handler initiated during a - // systemstack call. The original G is still in the - // running state, and we want to print its stack. + // Note: gp.m == getg().m occurs when tracebackothers is called + // from a signal handler initiated during a systemstack call. + // The original G is still in the running state, and we want to + // print its stack. if gp.m != getg().m && readgstatus(gp)&^_Gscan == _Grunning { print("\tgoroutine running on other thread; stack unavailable\n") printcreatedby(gp)