Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFI::MemoryPointer#free may cause JVM crashes #494

Closed
ghost opened this Issue Jan 12, 2013 · 0 comments

Comments

Projects
None yet
0 participants
@ghost
Copy link

ghost commented Jan 12, 2013

FFI::MemoryPointer#free() eventually invokes CachingNativeMemoryAllocator.AllocatedMemoryIO.free(), which frees the native memory. In doing so, it also nulls out a keep-alive referent, but does so before it frees the native memory, not after, which can possibly lead to that memory chunk being recycled into another allocation, and then freed.

@ghost ghost closed this in 7f721ee Jan 12, 2013

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.