Calling into Java from COMPILED_METHOD_LOAD callback

Martin Traverso mtraverso at gmail.com
Tue Aug 6 11:16:27 PDT 2013


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 code or JNI functions may be
paused until this function returns - so neither should be called from the
thread sending the event. This function returns only after the missed
events have been sent, processed and have returned".

Thanks,
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20130806/7f80c944/attachment.html 


More information about the serviceability-dev mailing list