This content has been marked as final. Show 3 replies
The JVM TI method exit event contains a jthread for the thread on which the method ran:
Recall that during execution of a method, 'this' resides in slot 0 of the stack frame,
so all you have to do is use GetLocalObject to get the value of slot 0 from depth 0:
I presume this is what you want.
Your reply gave me a new insight to JVMTI.
I deeply appreciate your kindness.
I thought it is possible to get the object executed by the current thread,
but it was not until I saw your message that I found where the object is.
I still have some difficulties to understand JVMTI.
Frankly, I don't know what the parameters depth and slot of GetLocalObject function mean.
Could you give me some references for understanding JVMTI more well?
Edited by: bcKim on Jan 15, 2008 6:45 PM