alluxio
alluxio copied to clipboard
Use more allocated buffers
What changes are proposed in this pull request?
Use more allocated buffers instead of directly allocating new memory.
Why are the changes needed?
If the value of BUF_POOL.ceilingEntry(length)
is a empty list, removing this entry and continuing to look for the eligible buffer will reuse more allocated buffers, reducing the OutOfMemoryError
exception caused by ByteBuffer.allocateDirect
.