Descriptiontime: use an alternative method of yielding during Overflow timer test
Fixes issue 6874.
Use runtime.GC() as a stronger version of runtime.Gosched() which tends to bias the running goroutine in an otherwise idle system. This appears to reduce the worst case number of spins from 600 down to 30 on my 2 core system under high load.
Patch Set 1 #Patch Set 2 : diff -r e5b12367190b https://code.google.com/p/go #Patch Set 3 : diff -r e5b12367190b https://code.google.com/p/go #Patch Set 4 : diff -r e5b12367190b https://code.google.com/p/go #Patch Set 5 : diff -r e5b12367190b https://code.google.com/p/go #Patch Set 6 : diff -r e5b12367190b https://code.google.com/p/go #Patch Set 7 : diff -r e5b12367190b https://code.google.com/p/go #Patch Set 8 : diff -r e5b12367190b https://code.google.com/p/go #MessagesTotal messages: 14
|