bc22bfa320
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. |
||
---|---|---|
.. | ||
src | ||
pom.xml |