Capturing the first invocation of a method
Tim Bell
Tim.Bell at Sun.COM
Tue Jan 8 14:33:23 PST 2008
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
More information about the hotspot-dev
mailing list