3304
3305 jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
3306
3307 extern void JDK_Version_init();
3308
3309 // Check version
3310 if (!is_supported_jni_version(args->version)) return JNI_EVERSION;
3311
3312 // Initialize the output stream module
3313 ostream_init();
3314
3315 // Process java launcher properties.
3316 Arguments::process_sun_java_launcher_properties(args);
3317
3318 // Initialize the os module before using TLS
3319 os::init();
3320
3321 // Initialize system properties.
3322 Arguments::init_system_properties();
3323
3324 // So that JDK version can be used as a discrimintor when parsing arguments
3325 JDK_Version_init();
3326
3327 // Update/Initialize System properties after JDK version number is known
3328 Arguments::init_version_specific_system_properties();
3329
3330 // Parse arguments
3331 jint parse_result = Arguments::parse(args);
3332 if (parse_result != JNI_OK) return parse_result;
3333
3334 os::init_before_ergo();
3335
3336 jint ergo_result = Arguments::apply_ergo();
3337 if (ergo_result != JNI_OK) return ergo_result;
3338
3339 if (PauseAtStartup) {
3340 os::pause();
3341 }
3342
3343 #ifndef USDT2
3344 HS_DTRACE_PROBE(hotspot, vm__init__begin);
|
3304
3305 jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
3306
3307 extern void JDK_Version_init();
3308
3309 // Check version
3310 if (!is_supported_jni_version(args->version)) return JNI_EVERSION;
3311
3312 // Initialize the output stream module
3313 ostream_init();
3314
3315 // Process java launcher properties.
3316 Arguments::process_sun_java_launcher_properties(args);
3317
3318 // Initialize the os module before using TLS
3319 os::init();
3320
3321 // Initialize system properties.
3322 Arguments::init_system_properties();
3323
3324 // So that JDK version can be used as a discriminator when parsing arguments
3325 JDK_Version_init();
3326
3327 // Update/Initialize System properties after JDK version number is known
3328 Arguments::init_version_specific_system_properties();
3329
3330 // Parse arguments
3331 jint parse_result = Arguments::parse(args);
3332 if (parse_result != JNI_OK) return parse_result;
3333
3334 os::init_before_ergo();
3335
3336 jint ergo_result = Arguments::apply_ergo();
3337 if (ergo_result != JNI_OK) return ergo_result;
3338
3339 if (PauseAtStartup) {
3340 os::pause();
3341 }
3342
3343 #ifndef USDT2
3344 HS_DTRACE_PROBE(hotspot, vm__init__begin);
|