src/java.base/share/native/libjava/VM.c
changeset 58493 55a8d95c7787
parent 50951 b96466cdfc45
equal deleted inserted replaced
58492:227ddf1ff93d 58493:55a8d95c7787
    40     return JVM_LatestUserDefinedLoader(env);
    40     return JVM_LatestUserDefinedLoader(env);
    41 }
    41 }
    42 
    42 
    43 JNIEXPORT void JNICALL
    43 JNIEXPORT void JNICALL
    44 Java_jdk_internal_misc_VM_initialize(JNIEnv *env, jclass cls) {
    44 Java_jdk_internal_misc_VM_initialize(JNIEnv *env, jclass cls) {
    45     if (!JDK_InitJvmHandle()) {
       
    46         JNU_ThrowInternalError(env, "Handle for JVM not found for symbol lookup");
       
    47         return;
       
    48     }
       
    49 
       
    50     // Registers implementations of native methods described in methods[]
    45     // Registers implementations of native methods described in methods[]
    51     // above.
    46     // above.
    52     // In particular, registers JVM_GetNanoTimeAdjustment as the implementation
    47     // In particular, registers JVM_GetNanoTimeAdjustment as the implementation
    53     // of the native VM.getNanoTimeAdjustment - avoiding the cost of
    48     // of the native VM.getNanoTimeAdjustment - avoiding the cost of
    54     // introducing a Java_jdk_internal_misc_VM_getNanoTimeAdjustment wrapper
    49     // introducing a Java_jdk_internal_misc_VM_getNanoTimeAdjustment wrapper