runtime: trivial replacements of g in remaining files

Rename g variables to gp for consistency.

Change-Id: I09ecdc7e8439637bc0e32f9c5f96f515e6436362
Reviewed-on: https://go-review.googlesource.com/c/go/+/418591
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
This commit is contained in:
Michael Pratt 2022-07-20 13:18:06 -04:00
parent c647264619
commit 29b9a328d2
9 changed files with 40 additions and 40 deletions

View file

@ -460,17 +460,17 @@ func MapBucketsPointerIsNil(m map[int]int) bool {
}
func LockOSCounts() (external, internal uint32) {
g := getg()
if g.m.lockedExt+g.m.lockedInt == 0 {
if g.lockedm != 0 {
gp := getg()
if gp.m.lockedExt+gp.m.lockedInt == 0 {
if gp.lockedm != 0 {
panic("lockedm on non-locked goroutine")
}
} else {
if g.lockedm == 0 {
if gp.lockedm == 0 {
panic("nil lockedm on locked goroutine")
}
}
return g.m.lockedExt, g.m.lockedInt
return gp.m.lockedExt, gp.m.lockedInt
}
//go:noinline