]> Cypherpunks repositories - gostls13.git/commit
runtime: tricky replacements of _g_ in mgc.go
authorMichael Pratt <mpratt@google.com>
Wed, 20 Jul 2022 16:59:03 +0000 (12:59 -0400)
committerMichael Pratt <mpratt@google.com>
Tue, 2 Aug 2022 18:51:17 +0000 (18:51 +0000)
commit222799fde653358d9748ed24c133cffa18208951
treea8ff5223d503c4ad4734657a84d0853d009a2056
parente9d7f54a1acf6706f790776f69972ce92d59e910
runtime: tricky replacements of _g_ in mgc.go

getg() is used primarily for gp.m, so use mp. gp.m.curg is also used,
name that curgp.

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