]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: tricky replacements of _g_ in proc.go
authorMichael Pratt <mpratt@google.com>
Wed, 10 Feb 2021 17:46:09 +0000 (12:46 -0500)
committerMichael Pratt <mpratt@google.com>
Tue, 2 Aug 2022 18:51:12 +0000 (18:51 +0000)
commite9d7f54a1acf6706f790776f69972ce92d59e910
treea126cbfc4db6bf83713b8ee80bf29ce04d537797
parent5e8d261918e1cd9a731ec8688cc969cebcc9ff39
runtime: tricky replacements of _g_ in proc.go

This manually replaces uses of _g_ that cannot be trivially switched to
gp since there is another gp variable in scope.

Most of these functions only use the current g to reach the m, so this
helps with clarity by switching all accesses directly to an mp variable.

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