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);
- How can I traverse the information, since the object type can be any (List, HashMap, or even custom class)?
- Any other way to send the captured object information to another JVM?