JVMTI : Forward captured object to another JVM

65 Views Asked by At

I wrote exception handler agent using JVMTI. I am able to capture the StackFrame information at that point in time

jvmti_env -> GetLocalVariableTable(frames[i].method, &entry_count_ptr, &table_ptr_test);

And able to fetch value for primitive types but in the case of Objects as in the below case

jvmti_env -> GetLocalObject(thread, 0, table_ptr_test[j].slot, &value_ptr_object);
  1. How can I traverse the information, since the object type can be any (List, HashMap, or even custom class)?
  2. Any other way to send the captured object information to another JVM?
0

There are 0 best solutions below