383 JDK_Version::set_java_version(get_java_version_info(ik, vmSymbols::java_version_name()));
384
385 JDK_Version::set_runtime_name(get_java_version_info(ik, vmSymbols::java_runtime_name_name()));
386
387 JDK_Version::set_runtime_version(get_java_version_info(ik, vmSymbols::java_runtime_version_name()));
388
389 JDK_Version::set_runtime_vendor_version(get_java_version_info(ik, vmSymbols::java_runtime_vendor_version_name()));
390
391 JDK_Version::set_runtime_vendor_vm_bug_url(get_java_version_info(ik, vmSymbols::java_runtime_vendor_vm_bug_url_name()));
392 }
393
394 // an instance of OutOfMemory exception has been allocated earlier
395 initialize_class(vmSymbols::java_lang_OutOfMemoryError(), CHECK);
396 initialize_class(vmSymbols::java_lang_NullPointerException(), CHECK);
397 initialize_class(vmSymbols::java_lang_ClassCastException(), CHECK);
398 initialize_class(vmSymbols::java_lang_ArrayStoreException(), CHECK);
399 initialize_class(vmSymbols::java_lang_ArithmeticException(), CHECK);
400 initialize_class(vmSymbols::java_lang_ArrayIndexOutOfBoundsException(), CHECK);
401 initialize_class(vmSymbols::java_lang_StackOverflowError(), CHECK);
402 initialize_class(vmSymbols::java_lang_IllegalMonitorStateException(), CHECK);
403 initialize_class(vmSymbols::java_lang_IllegalArgumentException(), CHECK);
404 }
405
406 void Threads::initialize_jsr292_core_classes(TRAPS) {
407 TraceTime timer("Initialize java.lang.invoke classes", TRACETIME_LOG(Info, startuptime));
408
409 initialize_class(vmSymbols::java_lang_invoke_MethodHandle(), CHECK);
410 initialize_class(vmSymbols::java_lang_invoke_ResolvedMethodName(), CHECK);
411 initialize_class(vmSymbols::java_lang_invoke_MemberName(), CHECK);
412 initialize_class(vmSymbols::java_lang_invoke_MethodHandleNatives(), CHECK);
413 }
414
415 jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
416 extern void JDK_Version_init();
417
418 // Preinitialize version info.
419 VM_Version::early_initialize();
420
421 // Check version
422 if (!is_supported_jni_version(args->version)) return JNI_EVERSION;
|
383 JDK_Version::set_java_version(get_java_version_info(ik, vmSymbols::java_version_name()));
384
385 JDK_Version::set_runtime_name(get_java_version_info(ik, vmSymbols::java_runtime_name_name()));
386
387 JDK_Version::set_runtime_version(get_java_version_info(ik, vmSymbols::java_runtime_version_name()));
388
389 JDK_Version::set_runtime_vendor_version(get_java_version_info(ik, vmSymbols::java_runtime_vendor_version_name()));
390
391 JDK_Version::set_runtime_vendor_vm_bug_url(get_java_version_info(ik, vmSymbols::java_runtime_vendor_vm_bug_url_name()));
392 }
393
394 // an instance of OutOfMemory exception has been allocated earlier
395 initialize_class(vmSymbols::java_lang_OutOfMemoryError(), CHECK);
396 initialize_class(vmSymbols::java_lang_NullPointerException(), CHECK);
397 initialize_class(vmSymbols::java_lang_ClassCastException(), CHECK);
398 initialize_class(vmSymbols::java_lang_ArrayStoreException(), CHECK);
399 initialize_class(vmSymbols::java_lang_ArithmeticException(), CHECK);
400 initialize_class(vmSymbols::java_lang_ArrayIndexOutOfBoundsException(), CHECK);
401 initialize_class(vmSymbols::java_lang_StackOverflowError(), CHECK);
402 initialize_class(vmSymbols::java_lang_IllegalMonitorStateException(), CHECK);
403 initialize_class(vmSymbols::java_lang_IdentityException(), CHECK);
404 initialize_class(vmSymbols::java_lang_IllegalArgumentException(), CHECK);
405 }
406
407 void Threads::initialize_jsr292_core_classes(TRAPS) {
408 TraceTime timer("Initialize java.lang.invoke classes", TRACETIME_LOG(Info, startuptime));
409
410 initialize_class(vmSymbols::java_lang_invoke_MethodHandle(), CHECK);
411 initialize_class(vmSymbols::java_lang_invoke_ResolvedMethodName(), CHECK);
412 initialize_class(vmSymbols::java_lang_invoke_MemberName(), CHECK);
413 initialize_class(vmSymbols::java_lang_invoke_MethodHandleNatives(), CHECK);
414 }
415
416 jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
417 extern void JDK_Version_init();
418
419 // Preinitialize version info.
420 VM_Version::early_initialize();
421
422 // Check version
423 if (!is_supported_jni_version(args->version)) return JNI_EVERSION;
|