]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix outdated g.m comment in traceback.go
authorMichael Pratt <mpratt@google.com>
Wed, 20 Jul 2022 17:20:48 +0000 (13:20 -0400)
committerMichael Pratt <mpratt@google.com>
Tue, 2 Aug 2022 18:50:48 +0000 (18:50 +0000)
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>
src/runtime/traceback.go

index 49147ff8381e3b45cea2f51cfc9792a3b90fcd08..9a5d9363ffa17489921d37d68117cdbbedeb4ec5 100644 (file)
@@ -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)