src/share/vm/prims/jni.cpp
Print this page
*** 3469,3479 ****
--- 3469,3486 ----
DT_RETURN_MARK(GetModule, jobject, (const jobject&)res);
res = Modules::get_module(env, clazz);
return res;
JNI_END
+ JNI_ENTRY(jsize, jni_GetAllModules(JNIEnv* env, jobjectArray *modules))
+ JNIWrapper("GetAllModules");
+ jsize count = 0;
+ count = Modules::get_all_modules(env, modules);
+ return count;
+ JNI_END
+
// Structure containing all jni functions
struct JNINativeInterface_ jni_NativeInterface = {
NULL,
NULL,
NULL,
*** 3753,3763 ****
jni_GetObjectRefType,
// Module features
! jni_GetModule
};
// For jvmti use to modify jni function table.
// Java threads in native contiues to run until it is transitioned
--- 3760,3771 ----
jni_GetObjectRefType,
// Module features
! jni_GetModule,
! jni_GetAllModules
};
// For jvmti use to modify jni function table.
// Java threads in native contiues to run until it is transitioned