< prev index next >

src/java.base/share/native/libjava/VM.c

Print this page

37 
38 JNIEXPORT jobject JNICALL
39 Java_jdk_internal_misc_VM_latestUserDefinedLoader0(JNIEnv *env, jclass cls) {
40     return JVM_LatestUserDefinedLoader(env);
41 }
42 
43 JNIEXPORT void JNICALL
44 Java_jdk_internal_misc_VM_initialize(JNIEnv *env, jclass cls) {
45     // Registers implementations of native methods described in methods[]
46     // above.
47     // In particular, registers JVM_GetNanoTimeAdjustment as the implementation
48     // of the native VM.getNanoTimeAdjustment - avoiding the cost of
49     // introducing a Java_jdk_internal_misc_VM_getNanoTimeAdjustment wrapper
50     (*env)->RegisterNatives(env, cls,
51                             methods, sizeof(methods)/sizeof(methods[0]));
52 }
53 
54 JNIEXPORT jobjectArray JNICALL
55 Java_jdk_internal_misc_VM_getRuntimeArguments(JNIEnv *env, jclass cls) {
56     return JVM_GetVmArguments(env);
57 }

37 
38 JNIEXPORT jobject JNICALL
39 Java_jdk_internal_misc_VM_latestUserDefinedLoader0(JNIEnv *env, jclass cls) {
40     return JVM_LatestUserDefinedLoader(env);
41 }
42 
43 JNIEXPORT void JNICALL
44 Java_jdk_internal_misc_VM_initialize(JNIEnv *env, jclass cls) {
45     // Registers implementations of native methods described in methods[]
46     // above.
47     // In particular, registers JVM_GetNanoTimeAdjustment as the implementation
48     // of the native VM.getNanoTimeAdjustment - avoiding the cost of
49     // introducing a Java_jdk_internal_misc_VM_getNanoTimeAdjustment wrapper
50     (*env)->RegisterNatives(env, cls,
51                             methods, sizeof(methods)/sizeof(methods[0]));
52 }
53 
54 JNIEXPORT jobjectArray JNICALL
55 Java_jdk_internal_misc_VM_getRuntimeArguments(JNIEnv *env, jclass cls) {
56     return JVM_GetVmArguments(env);
57 }
< prev index next >