aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2022-07-20 13:20:48 -0400
committerMichael Pratt <mpratt@google.com>2022-08-02 18:50:48 +0000
commit9dbc0f3556b3401b0f3339d4c33cd32ea16d5241 (patch)
treeb4c569b7bbe3eb6e11aa13f9331487e5faaf8fe1
parentd723df76da3ee4c8f3c03fd03be29fba9bfeb02a (diff)
downloadgo-9dbc0f3556b3401b0f3339d4c33cd32ea16d5241.tar.gz
go-9dbc0f3556b3401b0f3339d4c33cd32ea16d5241.zip
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 <mpratt@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com>
-rw-r--r--src/runtime/traceback.go8
1 files changed, 4 insertions, 4 deletions
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)