go/src/sync
Michael Munday b7f3c178a3 sync: deflake TestWaitGroupMisuse2
We need to yield to the runtime every now and again to avoid
deadlock. This doesn't show up on most machines because the test
only runs when you have 5 or more CPUs.

Fixes #20072.

Change-Id: Ibf5ed370e919943395f3418487188df0b2be160b
Reviewed-on: https://go-review.googlesource.com/112978
Run-TryBot: Michael Munday <mike.munday@ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-05-14 04:42:45 +00:00
..
atomic sync/atomic: redirect many functions to runtime/internal/atomic 2018-05-03 21:35:01 +00:00
cond.go all: change github.com issue links to golang.org 2017-11-04 04:13:41 +00:00
cond_test.go sync: hide test of misuse of Cond from vet 2018-04-25 02:49:46 +00:00
example_pool_test.go sync: add example for Pool 2016-11-10 05:32:14 +00:00
example_test.go
export_test.go sync: deflake TestPool and TestPoolNew 2017-06-28 22:02:07 +00:00
map.go sync: document when and when not to use Map 2018-01-04 20:13:20 +00:00
map_bench_test.go sync: release m.mu during (*RWMutexMap).Range callbacks in sync_test 2017-07-20 18:51:09 +00:00
map_reference_test.go sync: release m.mu during (*RWMutexMap).Range callbacks in sync_test 2017-07-20 18:51:09 +00:00
map_test.go sync: really test DeepCopyMap 2017-04-30 14:17:36 +00:00
mutex.go sync: throw, not panic, for unlock of unlocked mutex 2017-12-08 13:40:21 +00:00
mutex_test.go sync: throw, not panic, for unlock of unlocked mutex 2017-12-08 13:40:21 +00:00
once.go
once_test.go
pool.go sync: align poolLocal to CPU cache line size 2017-04-20 22:36:07 +00:00
pool_test.go sync: deflake TestPool and TestPoolNew 2017-06-28 22:02:07 +00:00
runtime.go sync: make Mutex more fair 2017-02-17 17:24:59 +00:00
runtime_sema_test.go sync: make Mutex more fair 2017-02-17 17:24:59 +00:00
rwmutex.go sync: enable profiling of RWMutex 2018-02-14 15:38:42 +00:00
rwmutex_test.go runtime: add read/write mutex type 2017-06-19 17:40:38 +00:00
waitgroup.go sync: make WaitGroup more space-efficient 2018-03-15 09:56:25 +00:00
waitgroup_test.go sync: deflake TestWaitGroupMisuse2 2018-05-14 04:42:45 +00:00