]> Cypherpunks repositories - gostls13.git/commit
undo CL 12167043 / 475e11851fc1
authorDmitriy Vyukov <dvyukov@google.com>
Wed, 31 Jul 2013 16:03:05 +0000 (20:03 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Wed, 31 Jul 2013 16:03:05 +0000 (20:03 +0400)
commit6ee69a97269eb26186d08832dcafd9432945f5ad
treeafdb474a216d4a971b1d185c8e0394e75ea5aefc
parent8679d5f2b5a621099af285587601d9f0c3f9b93b
undo CL 12167043 / 475e11851fc1

Submitted with some unrelated changes that were not intended to go in.

««« original CL description
runtime: do not park sysmon thread if any goroutines are running
Sysmon thread parks if no goroutines are running (runtime.sched.npidle == runtime.gomaxprocs).
Currently it's unparked when a goroutine enters syscall, it was enough
to retake P's from blocking syscalls.
But it's not enough for reliable goroutine preemption. We need to ensure that
sysmon runs if any goroutines are running.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/12167043
»»»

R=rsc
CC=golang-dev
https://golang.org/cl/12171044
src/pkg/runtime/proc.c