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