Oak icon indicating copy to clipboard operation
Oak copied to clipboard

Elimination of all ByteBuffer Usage (for Java 8)

Open sanastas opened this issue 3 years ago • 8 comments

Base all of the off-heap memory management on unsafe allocation and access, without ByteBuffer intermediate layer (in addition to existing memory management). The reason for the change is the possibility to gain better throughput without spending CPU cycles and memory on ByteBuffer internals.

That means a new memory manager to be based on using addresses instead of ByteBuffers and allocating the address from unsafe: Unsafe().allocateMemory(size);

That requires a significant code writing: new (alternative) Block, BlockPool, MemoryAllocator, MemoryManager etc.

For more explanations feel free to add questions in this issue.

sanastas avatar Feb 28 '21 07:02 sanastas