3326
3327 // Initialize the output stream module
3328 ostream_init();
3329
3330 // Process java launcher properties.
3331 Arguments::process_sun_java_launcher_properties(args);
3332
3333 // Initialize the os module before using TLS
3334 os::init();
3335
3336 // Initialize system properties.
3337 Arguments::init_system_properties();
3338
3339 // So that JDK version can be used as a discrimintor when parsing arguments
3340 JDK_Version_init();
3341
3342 // Update/Initialize System properties after JDK version number is known
3343 Arguments::init_version_specific_system_properties();
3344
3345 // Parse arguments
3346 jint parse_result = Arguments::parse(args);
3347 if (parse_result != JNI_OK) return parse_result;
3348
3349 os::init_before_ergo();
3350
3351 jint ergo_result = Arguments::apply_ergo();
3352 if (ergo_result != JNI_OK) return ergo_result;
3353
3354 if (PauseAtStartup) {
3355 os::pause();
3356 }
3357
3358 #ifndef USDT2
3359 HS_DTRACE_PROBE(hotspot, vm__init__begin);
3360 #else /* USDT2 */
3361 HOTSPOT_VM_INIT_BEGIN();
3362 #endif /* USDT2 */
3363
3364 // Record VM creation timing statistics
3365 TraceVmCreationTime create_vm_timer;
|
3326
3327 // Initialize the output stream module
3328 ostream_init();
3329
3330 // Process java launcher properties.
3331 Arguments::process_sun_java_launcher_properties(args);
3332
3333 // Initialize the os module before using TLS
3334 os::init();
3335
3336 // Initialize system properties.
3337 Arguments::init_system_properties();
3338
3339 // So that JDK version can be used as a discrimintor when parsing arguments
3340 JDK_Version_init();
3341
3342 // Update/Initialize System properties after JDK version number is known
3343 Arguments::init_version_specific_system_properties();
3344
3345 // Parse arguments
3346 // Note: this internally calls os::init_container_support()
3347 jint parse_result = Arguments::parse(args);
3348 if (parse_result != JNI_OK) return parse_result;
3349
3350 os::init_before_ergo();
3351
3352 jint ergo_result = Arguments::apply_ergo();
3353 if (ergo_result != JNI_OK) return ergo_result;
3354
3355 if (PauseAtStartup) {
3356 os::pause();
3357 }
3358
3359 #ifndef USDT2
3360 HS_DTRACE_PROBE(hotspot, vm__init__begin);
3361 #else /* USDT2 */
3362 HOTSPOT_VM_INIT_BEGIN();
3363 #endif /* USDT2 */
3364
3365 // Record VM creation timing statistics
3366 TraceVmCreationTime create_vm_timer;
|