netty5/buffer
Rolandz 836c39b82f Fix offset calculation in PooledByteBufAllocator when used
Motivation:

When we create new chunk with memory aligned, the offset of direct memory should be
'alignment - address & (alignment - 1)', not just 'address & (alignment - 1)'.

Modification:

Change offset calculating formula to offset = alignment - address & (alignment - 1) in PoolArena.DirectArena#offsetCacheLine and add a unit test to assert that.

Result:

Correctly calculate offset.
2018-11-27 11:47:40 +01:00
..
src Fix offset calculation in PooledByteBufAllocator when used 2018-11-27 11:47:40 +01:00
pom.xml Update version number to start working on Netty 5 2018-11-20 15:49:57 +01:00