netty5/buffer/src
buchgr 35771dd1cd Fix race in PoolArena.allocate. Fixes #4829
Motivation:

The statistic counters PoolArena.(allocationsTiny|allocationsSmall) are
not protected by a per arena lock, but by a per size class lock. Thus,
two concurrent allocations of different size (class) could lead to a
race and ultimately to wrong statistics.

Modifications:

Use a thread-safe LongCounter instead of a plain long data type.

Result:

Fewer data races.
2016-03-14 08:57:46 +01:00
..
main/java/io/netty/buffer Fix race in PoolArena.allocate. Fixes #4829 2016-03-14 08:57:46 +01:00
test/java/io/netty/buffer Add methods with position independent FileChannel calls to ByteBuf 2016-02-14 20:37:37 -08:00