47 // unloading is enabled or disabled. We also have a single extension event |
47 // unloading is enabled or disabled. We also have a single extension event |
48 // EXT_EVENT_CLASS_UNLOAD which is used to provide the JVMDI_EVENT_CLASS_UNLOAD |
48 // EXT_EVENT_CLASS_UNLOAD which is used to provide the JVMDI_EVENT_CLASS_UNLOAD |
49 // event. The function and the event are registered here. |
49 // event. The function and the event are registered here. |
50 // |
50 // |
51 void JvmtiExtensions::register_extensions() { |
51 void JvmtiExtensions::register_extensions() { |
52 _ext_functions = new (ResourceObj::C_HEAP) GrowableArray<jvmtiExtensionFunctionInfo*>(1,true); |
52 _ext_functions = new (ResourceObj::C_HEAP, mtInternal) GrowableArray<jvmtiExtensionFunctionInfo*>(1,true); |
53 _ext_events = new (ResourceObj::C_HEAP) GrowableArray<jvmtiExtensionEventInfo*>(1,true); |
53 _ext_events = new (ResourceObj::C_HEAP, mtInternal) GrowableArray<jvmtiExtensionEventInfo*>(1,true); |
54 |
54 |
55 // register our extension function |
55 // register our extension function |
56 static jvmtiParamInfo func_params[] = { |
56 static jvmtiParamInfo func_params[] = { |
57 { (char*)"IsClassUnloadingEnabled", JVMTI_KIND_OUT, JVMTI_TYPE_JBOOLEAN, JNI_FALSE } |
57 { (char*)"IsClassUnloadingEnabled", JVMTI_KIND_OUT, JVMTI_TYPE_JBOOLEAN, JNI_FALSE } |
58 }; |
58 }; |