src/share/vm/runtime/thread.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/runtime

src/share/vm/runtime/thread.cpp

Print this page




3507   // Record VM creation timing statistics
3508   TraceVmCreationTime create_vm_timer;
3509   create_vm_timer.start();
3510 
3511   // Initialize system properties.
3512   Arguments::init_system_properties();
3513 
3514   // So that JDK version can be used as a discriminator when parsing arguments
3515   JDK_Version_init();
3516 
3517   // Update/Initialize System properties after JDK version number is known
3518   Arguments::init_version_specific_system_properties();
3519 
3520   // Make sure to initialize log configuration *before* parsing arguments
3521   LogConfiguration::initialize(create_vm_timer.begin_time());
3522 
3523   // Parse arguments
3524   jint parse_result = Arguments::parse(args);
3525   if (parse_result != JNI_OK) return parse_result;
3526 


3527   os::init_before_ergo();
3528 
3529   jint ergo_result = Arguments::apply_ergo();
3530   if (ergo_result != JNI_OK) return ergo_result;
3531 
3532   // Final check of all ranges after ergonomics which may change values.
3533   if (!CommandLineFlagRangeList::check_ranges()) {
3534     return JNI_EINVAL;
3535   }
3536 
3537   // Final check of all 'AfterErgo' constraints after ergonomics which may change values.
3538   bool constraint_result = CommandLineFlagConstraintList::check_constraints(CommandLineFlagConstraint::AfterErgo);
3539   if (!constraint_result) {
3540     return JNI_EINVAL;
3541   }
3542 
3543   CommandLineFlagWriteableList::mark_startup();
3544 
3545   if (PauseAtStartup) {
3546     os::pause();




3507   // Record VM creation timing statistics
3508   TraceVmCreationTime create_vm_timer;
3509   create_vm_timer.start();
3510 
3511   // Initialize system properties.
3512   Arguments::init_system_properties();
3513 
3514   // So that JDK version can be used as a discriminator when parsing arguments
3515   JDK_Version_init();
3516 
3517   // Update/Initialize System properties after JDK version number is known
3518   Arguments::init_version_specific_system_properties();
3519 
3520   // Make sure to initialize log configuration *before* parsing arguments
3521   LogConfiguration::initialize(create_vm_timer.begin_time());
3522 
3523   // Parse arguments
3524   jint parse_result = Arguments::parse(args);
3525   if (parse_result != JNI_OK) return parse_result;
3526 
3527   OSContainer::init();
3528 
3529   os::init_before_ergo();
3530 
3531   jint ergo_result = Arguments::apply_ergo();
3532   if (ergo_result != JNI_OK) return ergo_result;
3533 
3534   // Final check of all ranges after ergonomics which may change values.
3535   if (!CommandLineFlagRangeList::check_ranges()) {
3536     return JNI_EINVAL;
3537   }
3538 
3539   // Final check of all 'AfterErgo' constraints after ergonomics which may change values.
3540   bool constraint_result = CommandLineFlagConstraintList::check_constraints(CommandLineFlagConstraint::AfterErgo);
3541   if (!constraint_result) {
3542     return JNI_EINVAL;
3543   }
3544 
3545   CommandLineFlagWriteableList::mark_startup();
3546 
3547   if (PauseAtStartup) {
3548     os::pause();


src/share/vm/runtime/thread.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File