3792 bool constraint_result = JVMFlagConstraintList::check_constraints(JVMFlagConstraint::AfterErgo);
3793 if (!constraint_result) {
3794 return JNI_EINVAL;
3795 }
3796
3797 JVMFlagWriteableList::mark_startup();
3798
3799 if (PauseAtStartup) {
3800 os::pause();
3801 }
3802
3803 HOTSPOT_VM_INIT_BEGIN();
3804
3805 // Timing (must come after argument parsing)
3806 TraceTime timer("Create VM", TRACETIME_LOG(Info, startuptime));
3807
3808 // Initialize the os module after parsing the args
3809 jint os_init_2_result = os::init_2();
3810 if (os_init_2_result != JNI_OK) return os_init_2_result;
3811
3812 #ifdef CAN_SHOW_REGISTERS_ON_ASSERT
3813 // Initialize assert poison page mechanism.
3814 if (ShowRegistersOnAssert) {
3815 initialize_assert_poison();
3816 }
3817 #endif // CAN_SHOW_REGISTERS_ON_ASSERT
3818
3819 SafepointMechanism::initialize();
3820
3821 jint adjust_after_os_result = Arguments::adjust_after_os();
3822 if (adjust_after_os_result != JNI_OK) return adjust_after_os_result;
3823
3824 // Initialize output stream logging
3825 ostream_init_log();
3826
3827 // Convert -Xrun to -agentlib: if there is no JVM_OnLoad
3828 // Must be before create_vm_init_agents()
3829 if (Arguments::init_libraries_at_startup()) {
3830 convert_vm_init_libraries_to_agents();
3831 }
|
3792 bool constraint_result = JVMFlagConstraintList::check_constraints(JVMFlagConstraint::AfterErgo);
3793 if (!constraint_result) {
3794 return JNI_EINVAL;
3795 }
3796
3797 JVMFlagWriteableList::mark_startup();
3798
3799 if (PauseAtStartup) {
3800 os::pause();
3801 }
3802
3803 HOTSPOT_VM_INIT_BEGIN();
3804
3805 // Timing (must come after argument parsing)
3806 TraceTime timer("Create VM", TRACETIME_LOG(Info, startuptime));
3807
3808 // Initialize the os module after parsing the args
3809 jint os_init_2_result = os::init_2();
3810 if (os_init_2_result != JNI_OK) return os_init_2_result;
3811
3812 if (NesteggSize > 0) {
3813 os::init_nestegg(NesteggSize);
3814 }
3815
3816 #ifdef CAN_SHOW_REGISTERS_ON_ASSERT
3817 // Initialize assert poison page mechanism.
3818 if (ShowRegistersOnAssert) {
3819 initialize_assert_poison();
3820 }
3821 #endif // CAN_SHOW_REGISTERS_ON_ASSERT
3822
3823 SafepointMechanism::initialize();
3824
3825 jint adjust_after_os_result = Arguments::adjust_after_os();
3826 if (adjust_after_os_result != JNI_OK) return adjust_after_os_result;
3827
3828 // Initialize output stream logging
3829 ostream_init_log();
3830
3831 // Convert -Xrun to -agentlib: if there is no JVM_OnLoad
3832 // Must be before create_vm_init_agents()
3833 if (Arguments::init_libraries_at_startup()) {
3834 convert_vm_init_libraries_to_agents();
3835 }
|