Skip to content

Commit b0a2a81

Browse files
mknyszekdmitshur
authored andcommitted
[release-branch.go1.13] runtime: call goready in wakeScavenger instead of ready
This changes fixes an oversight in wakeScavenger which would cause ready to be called off of the system stack. This change makes it so that wakeScavenger calls goready, which switches to the system stack before calling ready. Fixes #36127. Change-Id: Icb13f180b4d8fdd47c921eac1b896e3dd49e43b3 Reviewed-on: https://go-review.googlesource.com/c/go/+/200999 Run-TryBot: Michael Knyszek <[email protected]> Reviewed-by: Keith Randall <[email protected]> (cherry picked from commit 2c87be4) Reviewed-on: https://go-review.googlesource.com/c/go/+/212103 TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Austin Clements <[email protected]>
1 parent e1df20e commit b0a2a81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/mgcscavenge.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ func wakeScavenger() {
233233
// Unpark the goroutine and tell it that there may have been a pacing
234234
// change.
235235
scavenge.parked = false
236-
ready(scavenge.g, 0, true)
236+
goready(scavenge.g, 0)
237237
}
238238
unlock(&scavenge.lock)
239239
}

0 commit comments

Comments
 (0)