netty5/buffer/src
Norman Maurer 30bb3094c1 [#5227] Fix race-condition in PooledByteBufAllocatorTest
Motivation:

PooledByteBufAllocatorTest.testNumThreadCachesWithNoDirrectArenas() had a race as it just used LockSupport.parkNanos(). We should better use a CountdownLatch and so be sure we really have init everything.

Modifications:

Replace LockSupport.parkNanos(...) with CountdownLatch usage

Result:

No more race in test.
2016-05-13 08:51:44 +02:00
..
main/java/io/netty/buffer [#5216] Correctly increment deallocationsHuge when call PoolArena.free 2016-05-06 21:44:43 +02:00
test/java/io/netty/buffer [#5227] Fix race-condition in PooledByteBufAllocatorTest 2016-05-13 08:51:44 +02:00