This discussion is archived
1 Reply Latest reply: Sep 16, 2008 3:40 AM by 800369 RSS

JVMTI - Extension Mechanism functions and Callbacks

843810 Newbie
Currently Being Moderated
Hi all,

i do not understand why do we have Extension Mechanism functions in JVMTI.
i think it is for registering our own event. but i don't understand how we can do it.

am i right?

also in the reference Doc for JVMTI, i have seen typedef struct for jvmtiCapabilities.

last few entries of it looks blank. there are no corresponding Capabilities mentioned there. can we set our own Capabilities there according to our need.

it seems like we can write our own event using above two concepts. but how can we do that need to be checked?

can any one tell me if i am wrong, what could be the purpose of above 2 concepts in JVMTI?

Please guide me.

Thanks,
  • 1. Re: JVMTI - Extension Mechanism functions and Callbacks
    800369 Newbie
    Currently Being Moderated
    Sandeep_P wrote:
    Hi all,

    i do not understand why do we have Extension Mechanism functions in JVMTI.
    i think it is for registering our own event. but i don't understand how we can do it.
    The extension mechanism is to allow implementation-specific functions and events be exposed. In the HotSpot VM the only extension it currently exposes is a ClassUnload event and a function that allows the agent test if class unloading is enabled.