passing JVMTI events back to Java application

Hello,I have a JVMTI agent written in C, controlled by a Java application and I want to be able to pass events (such as Breakpoint hit) back to the Java application.Is this possible? or am I simply going to have to use stdout?Many thanks, Joe
[277 byte] By [jmw2trinculoa] at [2007-10-3 4:18:48]
# 1

Hi Joe,

Most JVM TI events can, in theory, be forwarded up to a Java programing language agent by using a JNI method call. A few events, like GC events, do not allow JNI calls -- these are indicated in the JVM TI specification. The bigger problem would be doing this in a way that does not hang or cause infinite recursion in your agent. For example, in the case of breakpoints, if a breakpoint is set in code used by the Java programing language event handler, infinite recursion will occur if proper precautions are not taken.

Thanks for your question,

Robert Field

JVM TI Specification Lead

Robert_Fielda at 2007-7-14 22:20:32 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...