diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 68d20edf412..a0167d333fe 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -3779,6 +3779,10 @@ func goschedImpl(gp *g) { globrunqput(gp) unlock(&sched.lock) + if mainStarted { + wakep() + } + schedule() }