alluxio icon indicating copy to clipboard operation
alluxio copied to clipboard

Use more allocated buffers

Open Haoning-Sun opened this issue 1 year ago • 0 comments

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.

Haoning-Sun avatar Feb 08 '24 07:02 Haoning-Sun