netty5/buffer/src
Norman Maurer 3a7dcde320 [#5224] Allow to use Unsafe.reallocateMemory(...) in UnpooledUnsafeNoCleanerDirectByteBuf.
Motivation:

If the user uses unsafe direct buffers with no cleaner we can use Unsafe.reallocateMemory(...) as optimization when we need to expand the buffer.

Modifications:

Use Unsafe.relocateMemory(...) in UnpooledUnsafeNoCleanerDirectByteBuf.

Result:

Less expensive expanding of buffers.
2016-06-04 19:21:41 +02:00
..
main/java/io/netty/buffer [#5224] Allow to use Unsafe.reallocateMemory(...) in UnpooledUnsafeNoCleanerDirectByteBuf. 2016-06-04 19:21:41 +02:00
test/java/io/netty/buffer Allow to create Unsafe ByteBuf implementations that not use a Cleaner to clean the native memory. 2016-06-03 21:20:10 +02:00