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