netty5/buffer
Nick Hill 695aa0959d 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:11 +02:00
..
src Use alloc().heapBuffer(...) to allocate new heap buffer. 2019-08-13 10:52:11 +02:00
pom.xml [maven-release-plugin] prepare for next development iteration 2019-07-24 09:05:57 +00:00