Calling into Java from COMPILED_METHOD_LOAD callback

Alan Bateman Alan.Bateman at oracle.com
Tue Aug 6 17:39:20 PDT 2013


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 Events" subsection in
> this doc:
>
> http://docs.oracle.com/javase/7/docs/platform/jvmti/jvmti.html#EventSection
>
> In particular there is a bullet list of general guidelines.
>
> Dan
One thing to add is that this event is specified for the "live phase" 
only so JNI should be okay (modulo the guidelines that Dan cited).

-Alan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20130806/0015bfe4/attachment.html 


More information about the serviceability-dev mailing list