1
0
mirror of https://github.com/golang/go synced 2024-10-04 18:31:22 -06:00
go/src
Dmitriy Vyukov 658d19a53f 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=rsc
CC=golang-dev
https://golang.org/cl/12176043
2013-07-31 20:09:03 +04:00
..
cmd cmd/gc: record argument size for all indirect function calls 2013-07-31 20:00:33 +04:00
lib9 libmach,lib9: override unused parameter warnings (fixes windows build) 2013-07-20 12:43:50 +10:00
libbio
libmach libmach: support more 386/amd64 instructions 2013-07-20 00:38:26 -07:00
pkg runtime: do not park sysmon thread if any goroutines are running 2013-07-31 20:09:03 +04:00
all.bash
all.bat all.bat,make.bat,run.bat: make these work even when directory has space in it 2013-03-25 12:13:34 +11:00
all.rc build: do not set GOBIN on Plan 9 2013-02-26 09:25:46 -08:00
clean.bash
clean.bat
clean.rc
make.bash cmd/dist, make.bash: pass -mmacosx-version-min=10.6 to gcc on Darwin 2013-04-16 13:30:52 -07:00
make.bat all.bat,make.bat,run.bat: make these work even when directory has space in it 2013-03-25 12:13:34 +11:00
Make.dist
make.rc build: fix make.rc on Plan 9 2013-05-24 13:55:19 -07:00
race.bash src: add race.bash 2013-01-28 21:05:25 +11:00
race.bat src: add race.bat 2013-02-03 00:49:37 +08:00
run.bash doc/codewalk: test source code 2013-07-30 09:42:53 +10:00
run.bat make.bat: incease runtime test timeout to 300s (fixes build) 2013-07-12 12:30:18 +10:00
run.rc build: do not set GOBIN on Plan 9 2013-02-26 09:25:46 -08:00
sudo.bash cmd/cov: delete 2013-05-24 11:06:06 -07:00