IBM User Guide for Java V7 on Windows > Troubleshooting and support > Using diagnostic tools > Using the JVMTI > IBM JVMTI extensions - API reference



Unsubscribing from verbose garbage collection logging

You can unsubscribe from verbose Garbage Collection (GC) data logging through an IBM JVMTI extension.

The DeregisterVerboseGCSubscriber() API has the JVMTI Extension Function identifier com.ibm.DeregisterVerboseGCSubscriber. The identifier is declared as macro COM_IBM_DEREGISTER_VERBOSEGC_SUBSCRIBER in ibmjvmti.h.

To unsubscribe from verbose GC data logging, use:

jvmtiError DeregisterVerboseGCSubscriber(jvmtiEnv* jvmti_env, void *userData, void *subscription_id)
You must supply the subscription ID returned by the call to RegisterVerboseGCSubscriber. The previously registered subscriber function is no longer called with future verbose logging records.

Parameters:

jvmti_env: A pointer to the JVMTI environment.

subscription_id: The subscription identifier.

Returns:

JVMTI_ERROR_NONE: Success.

JVMTI_ERROR_NULL_POINTER: The subscription_id parameter is null.

JVMTI_ERROR_OUT_OF_MEMORY: There is insufficient system memory to process the request.

JVMTI_ERROR_INVALID_ENVIRONMENT: The jvmti_env parameter is not valid.

JVMTI_ERROR_WRONG_PHASE: The extension has been called outside the JVMTI live phase.


Parent: IBM JVMTI extensions - API reference








Error 404 - Not Found

Error 404 - Not Found

The document you are looking for may have been removed or re-named. Please contact the web site owner for further assistance.