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

ghost opened this Issue Jan 12, 2013 · 0 comments


None yet
0 participants
Copy link

ghost commented Jan 12, 2013

FFI::MemoryPointer#free() eventually invokes, 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.