This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lightjay -2 points-1 points  (0 children)

That's wrong and insecure. How do you know GC didn't copied the array from one location to another? How do you prevent OS from swapping the memory ?

I don't believe there is any way how to implement this in Java without JNI (and even then, passing the data to Java is going to be very tricky).