< prev index next >

src/hotspot/share/runtime/threads.cpp

Print this page

 380     JDK_Version::set_java_version(get_java_version_info(ik, vmSymbols::java_version_name()));
 381 
 382     JDK_Version::set_runtime_name(get_java_version_info(ik, vmSymbols::java_runtime_name_name()));
 383 
 384     JDK_Version::set_runtime_version(get_java_version_info(ik, vmSymbols::java_runtime_version_name()));
 385 
 386     JDK_Version::set_runtime_vendor_version(get_java_version_info(ik, vmSymbols::java_runtime_vendor_version_name()));
 387 
 388     JDK_Version::set_runtime_vendor_vm_bug_url(get_java_version_info(ik, vmSymbols::java_runtime_vendor_vm_bug_url_name()));
 389   }
 390 
 391   // an instance of OutOfMemory exception has been allocated earlier
 392   initialize_class(vmSymbols::java_lang_OutOfMemoryError(), CHECK);
 393   initialize_class(vmSymbols::java_lang_NullPointerException(), CHECK);
 394   initialize_class(vmSymbols::java_lang_ClassCastException(), CHECK);
 395   initialize_class(vmSymbols::java_lang_ArrayStoreException(), CHECK);
 396   initialize_class(vmSymbols::java_lang_ArithmeticException(), CHECK);
 397   initialize_class(vmSymbols::java_lang_ArrayIndexOutOfBoundsException(), CHECK);
 398   initialize_class(vmSymbols::java_lang_StackOverflowError(), CHECK);
 399   initialize_class(vmSymbols::java_lang_IllegalMonitorStateException(), CHECK);

 400   initialize_class(vmSymbols::java_lang_IllegalArgumentException(), CHECK);
 401 }
 402 
 403 void Threads::initialize_jsr292_core_classes(TRAPS) {
 404   TraceTime timer("Initialize java.lang.invoke classes", TRACETIME_LOG(Info, startuptime));
 405 
 406   initialize_class(vmSymbols::java_lang_invoke_MethodHandle(), CHECK);
 407   initialize_class(vmSymbols::java_lang_invoke_ResolvedMethodName(), CHECK);
 408   initialize_class(vmSymbols::java_lang_invoke_MemberName(), CHECK);
 409   initialize_class(vmSymbols::java_lang_invoke_MethodHandleNatives(), CHECK);
 410 }
 411 
 412 jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
 413   extern void JDK_Version_init();
 414 
 415   // Preinitialize version info.
 416   VM_Version::early_initialize();
 417 
 418   // Check version
 419   if (!is_supported_jni_version(args->version)) return JNI_EVERSION;

 380     JDK_Version::set_java_version(get_java_version_info(ik, vmSymbols::java_version_name()));
 381 
 382     JDK_Version::set_runtime_name(get_java_version_info(ik, vmSymbols::java_runtime_name_name()));
 383 
 384     JDK_Version::set_runtime_version(get_java_version_info(ik, vmSymbols::java_runtime_version_name()));
 385 
 386     JDK_Version::set_runtime_vendor_version(get_java_version_info(ik, vmSymbols::java_runtime_vendor_version_name()));
 387 
 388     JDK_Version::set_runtime_vendor_vm_bug_url(get_java_version_info(ik, vmSymbols::java_runtime_vendor_vm_bug_url_name()));
 389   }
 390 
 391   // an instance of OutOfMemory exception has been allocated earlier
 392   initialize_class(vmSymbols::java_lang_OutOfMemoryError(), CHECK);
 393   initialize_class(vmSymbols::java_lang_NullPointerException(), CHECK);
 394   initialize_class(vmSymbols::java_lang_ClassCastException(), CHECK);
 395   initialize_class(vmSymbols::java_lang_ArrayStoreException(), CHECK);
 396   initialize_class(vmSymbols::java_lang_ArithmeticException(), CHECK);
 397   initialize_class(vmSymbols::java_lang_ArrayIndexOutOfBoundsException(), CHECK);
 398   initialize_class(vmSymbols::java_lang_StackOverflowError(), CHECK);
 399   initialize_class(vmSymbols::java_lang_IllegalMonitorStateException(), CHECK);
 400   initialize_class(vmSymbols::java_lang_IdentityException(), 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;
< prev index next >