]> Cypherpunks repositories - gostls13.git/commit
runtime: call goready in wakeScavenger instead of ready
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 14 Oct 2019 17:33:36 +0000 (17:33 +0000)
committerMichael Knyszek <mknyszek@google.com>
Tue, 15 Oct 2019 17:29:47 +0000 (17:29 +0000)
commit2c87be436bddd9b49f11959adee1ae817cb48ee1
treefc23a5f8fad27b4244bc89eef7a4d995bf34a76f
parent11d7775c9f6e3166bf8f58c37d0edcb0ffc720a3
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 <mknyszek@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/mgcscavenge.go