netty5/buffer/src
buchgr 47b598e6ce 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:58:15 +01:00
..
main/java/io/netty/buffer Fix race in PoolArena.allocate. Fixes #4829 2016-03-14 08:58:15 +01:00
test/java/io/netty/buffer ByteBufUtil.writeUtf8 not consistent with String.getBytes(Charset) 2016-02-11 08:27:22 -08:00