Descriptionruntime: fix deadlock in parallel for test
The deadlock occurs when another goroutine requests GC
during the test. When wait=true the test expects physical parallelism,
that is, that P goroutines are all active at the same time.
If GC is requested, then part of the goroutines are not scheduled,
so other goroutines deadlock.
With wait=false, goroutines finish parallel for w/o waiting for all
other goroutines.
Fixes issue 3954.
Patch Set 1 #Patch Set 2 : diff -r 311b51675518 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 3 : diff -r 311b51675518 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 4 : diff -r 311b51675518 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 5 : diff -r fd3746c787ac https://dvyukov%40google.com@code.google.com/p/go/ #MessagesTotal messages: 3
|