netty5/buffer/src
Nick Hill bc22bfa320 Use alloc().heapBuffer(...) to allocate new heap buffer.
Motivation

Underlying array allocations in UnpooledHeapByteBuf are intended be done
via the protected allocateArray(int) method, so that they can be tracked
and/or overridden by subclasses, for example
UnpooledByteBufAllocator$InstrumentedUnpooledHeapByteBuf or #8015. But
it looks like an explicit allocation was missed in the copy(int,int)
method.

Modification

Just use alloc().heapBuffer(...) for the allocation

Result

No possibility of "missing" array allocations when ByteBuf#copy is used.
2019-08-13 10:52:52 +02:00
..
main/java/io/netty/buffer Use alloc().heapBuffer(...) to allocate new heap buffer. 2019-08-13 10:52:52 +02:00
test/java/io/netty/buffer Fix ByteBufUtil#writeUtf8 subsequence split surrogate edge-case bug (#9437) 2019-08-10 20:54:43 +02:00