src/share/vm/prims/jvmtiExtensions.cpp

changeset 3900
d2a62e0f25eb
parent 2314
f95d63e2154a
child 4153
b9a9ed0f8eeb
equal deleted inserted replaced
3877:74533f63b116 3900:d2a62e0f25eb
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 };

mercurial