]> Cypherpunks repositories - gostls13.git/commit
runtime: tricky replacements of _g_ in trace.go
authorMichael Pratt <mpratt@google.com>
Thu, 11 Feb 2021 19:09:10 +0000 (14:09 -0500)
committerMichael Pratt <mpratt@google.com>
Tue, 2 Aug 2022 18:51:22 +0000 (18:51 +0000)
commit74cee276fe59013d042658f54c7340befa3ecad6
treee0871d85590fa6f3b8fd28be03b2e41280543d7c
parent222799fde653358d9748ed24c133cffa18208951
runtime: tricky replacements of _g_ in trace.go

Like previous CLs, cases where the getg() G is used only to access the M
are replaced with direct uses of mp.

Change-Id: I4740c80d6b4997d051a52afcfa8c087e0317dab3
Reviewed-on: https://go-review.googlesource.com/c/go/+/418579
Reviewed-by: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Michael Pratt <mpratt@google.com>
src/runtime/trace.go