• Dmitriy Vyukov's avatar
    runtime: ensure fair scheduling during frequent GCs · 90eca36a
    Dmitriy Vyukov authored
    What was happenning is as follows:
    Each writer goroutine always triggers GC during its scheduling quntum.
    After GC goroutines are shuffled so that the timer goroutine is always second in the queue.
    This repeats infinitely, causing timer goroutine starvation.
    Fixes #7126.
    
    R=golang-codereviews, shanemhansen, khr, khr
    CC=golang-codereviews
    https://golang.org/cl/53080043
    90eca36a
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
liblink Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.dist Loading commit data...
all.bash Loading commit data...
all.bat Loading commit data...
all.rc Loading commit data...
clean.bash Loading commit data...
clean.bat Loading commit data...
clean.rc Loading commit data...
make.bash Loading commit data...
make.bat Loading commit data...
make.rc Loading commit data...
race.bash Loading commit data...
race.bat Loading commit data...
run.bash Loading commit data...
run.bat Loading commit data...
run.rc Loading commit data...
sudo.bash Loading commit data...