I'm using JNI to analyze some program. I just wonder, after get jclass reference, how it is possible to find the size of the underlying class ?
for example: class cls = env->FindClass("Lee/Boehm/Test");
from here how can i evaluate the size of the class Lee.Boehm.Test inside hotspot's heap ?
Thank you Boehm
Here you go
agent.c
and ./util/Util.java
and Test.java
gcc -I/opt/ibm-jdk-bin-1.6.0.9/include -shared -fPIC -o libagent.so agent.c
java -agentpath:./libagent.so Test