Capturing the first invocation of a method

Harry Yale harryyale at gmail.com
Wed Jan 9 15:48:00 PST 2008


After all, I was able to make it work in my original way :)
I was overlooking that fact that flag "ProfileInterpreter" being true
caused my code to skipped over for non-native methods.

JVMTI might be an option though I'm not sure I can access the C++
Hotspot code from the JVMTI native
code, which I need to do.

Thanks, Tim and Tom.

On Jan 8, 2008 2:33 PM, Tim Bell <Tim.Bell at sun.com> wrote:
> Harry Yale wrote:
>
> > [...] I need to capture first
> > invocations of methods
> > on-the-fly internally in the VM code rather than externally from the
> > debugger or after-the-fast in the log.
>
> I'm not sure writing a JVM TI agent would qualify as 'in the VM'.  I hope so.  It would be
> running in the same address space.  Take a look here:
>
>    http://java.sun.com/developer/technicalArticles/J2SE/jvm_ti/
>
> Search for 'ClassFileLoadHook', 'BCI', 'java_crw_demo'
>
> HTH - Tim
>



-- 
Harry



More information about the hotspot-dev mailing list