Descriptionruntime: ensure fair scheduling during frequent GCs
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 issue 7126.
Patch Set 1 #Patch Set 2 : diff -r 209c0d648d9c https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 3 : diff -r 209c0d648d9c https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 4 : diff -r 209c0d648d9c https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 5 : diff -r 209c0d648d9c https://dvyukov%40google.com@code.google.com/p/go/ #
Total comments: 1
Patch Set 6 : diff -r c249c52cd276 https://dvyukov%40google.com@code.google.com/p/go/ #MessagesTotal messages: 7
|