Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
What Happens When Native Memory Space Pointed By java.nio.ByteBuffer Is Deleted
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="res7cxbi, post: 643467"] That's what i thought Because i have a large native array that will crash the JVM if i tried to use ordinary JNI functions to wrap it in a jbyteArray and passing it to java. (That has happened) So i used a ByteBuffer to directly reference to that native array so i could avoid doing all that copying crap I have successfully done this ByteBuffer thing without any jvm crashes :-) Then i just thought of this. Maybe i should wrap my ByteBuffer as well so that i don't accidently access it when i delete the native array that i don't need anymore. thanks for answering [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
What Happens When Native Memory Space Pointed By java.nio.ByteBuffer Is Deleted
Top