Skip to content

Attach memory area reference to DirectByteBuffers#52

Merged
xerial merged 1 commit intoxerial:developfrom
maciej:attach_mem_to_dbb
Dec 13, 2016
Merged

Attach memory area reference to DirectByteBuffers#52
xerial merged 1 commit intoxerial:developfrom
maciej:attach_mem_to_dbb

Conversation

@maciej
Copy link
Contributor

@maciej maciej commented Dec 6, 2016

This avoids garbage collection of the LBufferAPI instance as long as DirectByteBuffers referring to the LBufferAPI memory area are alive.

Failing to do keep the reference results in a segmentation fault upon access to the DirectByteBuffer after a GC run.

This avoids garbage collection of the LBufferAPI instance
as long as DirectByteBuffers referring to the LBufferAPI memory area
are alive.

Failing to do keep the reference results in a SIGSEGV from the JVM after a GC run.
@maciej maciej changed the title Attach reference to backing buffer to DirectByteBuffer Attach memory area reference to DirectByteBuffers Dec 6, 2016
@xerial xerial merged commit 056aaef into xerial:develop Dec 13, 2016
@xerial
Copy link
Owner

xerial commented Dec 13, 2016

Merged. Thanks for the fix!

@maciej
Copy link
Contributor Author

maciej commented Dec 13, 2016

You're welcome!

Thank you for merging it!

Jackie-Jiang added a commit to apache/pinot that referenced this pull request Feb 22, 2021
Upgrade the larray version to include the fix: xerial/larray#52
Also fix the issue of not able to load large index if it shows up first in `SingleFileIndexDirectory`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants