Is it possible to get the address of a Java object in a JNI method? Or in any other way.
If it is impossible to get the real address of the object, is there a way to determine the memory location of the data structure?
(This is just an example, a description of my question above this line.)
For example, I have an array (or any other types of containers, for example ArrayList, LinkedList, etc.) from "objects", I want to know how these "objects" (and not links inside the container) are distributed in heaps, they can not stand out continuously or even randomly ordered. So can I get information about this?
Edit: Here's another thought: is there any other Java virtual machine that can handle this kind of low level? For example, Jikes or even Dalvik.
source share