Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
In the current MemoryChunk implementation, the checkIndex() function which checks the valid index does not return false which makes the other conditionals meaningless.
This makes it impossible for the MemoryChunk to check whether this chunk is released or not when accessing it using the random access functions that use UNSAFE.
Since IndexOutOfBounds exception is thrown after the MemoryChunk release is checked, the checkIndex() function should be changed to either return true or false.
Attachments
Issue Links
- is related to
-
NEMO-388 Off-heap memory management (reuse ByteBuffer)
- Resolved
- links to