Re: Calling into Java from COMPILED_METHOD_LOAD callback

2013-08-06 Thread Alan Bateman
On 06/08/2013 12:16, Daniel D. Daugherty wrote: In general, event handlers should do as little as possible to avoid adverse interactions with the rest of the VM. Calling Java code from an event handler would not really qualify "as little as possible". You should probably check out the "Handling

Re: Calling into Java from COMPILED_METHOD_LOAD callback

2013-08-06 Thread Daniel D. Daugherty
On 8/6/13 12:16 PM, Martin Traverso wrote: Is it safe to call Java code via JNI from the COMPILED_METHOD_LOAD callback? The JVMTI spec is not explicit about this, and the closest thing I could find is in relation to the GenerateEvents function: "Attempts to execute Java programming language co