Skip to content

Commit 2c87be4

Browse files
committed
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 #34773. 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]>
1 parent 11d7775 commit 2c87be4

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)