61 #include "prims/jvmtiThreadState.hpp" |
61 #include "prims/jvmtiThreadState.hpp" |
62 #include "prims/privilegedStack.hpp" |
62 #include "prims/privilegedStack.hpp" |
63 #include "runtime/arguments.hpp" |
63 #include "runtime/arguments.hpp" |
64 #include "runtime/atomic.hpp" |
64 #include "runtime/atomic.hpp" |
65 #include "runtime/biasedLocking.hpp" |
65 #include "runtime/biasedLocking.hpp" |
66 #include "runtime/commandLineFlagConstraintList.hpp" |
66 #include "runtime/flags/jvmFlagConstraintList.hpp" |
67 #include "runtime/commandLineFlagWriteableList.hpp" |
67 #include "runtime/flags/jvmFlagRangeList.hpp" |
68 #include "runtime/commandLineFlagRangeList.hpp" |
68 #include "runtime/flags/jvmFlagWriteableList.hpp" |
69 #include "runtime/deoptimization.hpp" |
69 #include "runtime/deoptimization.hpp" |
70 #include "runtime/frame.inline.hpp" |
70 #include "runtime/frame.inline.hpp" |
71 #include "runtime/globals.hpp" |
|
72 #include "runtime/handshake.hpp" |
71 #include "runtime/handshake.hpp" |
73 #include "runtime/init.hpp" |
72 #include "runtime/init.hpp" |
74 #include "runtime/interfaceSupport.inline.hpp" |
73 #include "runtime/interfaceSupport.inline.hpp" |
75 #include "runtime/java.hpp" |
74 #include "runtime/java.hpp" |
76 #include "runtime/javaCalls.hpp" |
75 #include "runtime/javaCalls.hpp" |
3661 |
3660 |
3662 jint ergo_result = Arguments::apply_ergo(); |
3661 jint ergo_result = Arguments::apply_ergo(); |
3663 if (ergo_result != JNI_OK) return ergo_result; |
3662 if (ergo_result != JNI_OK) return ergo_result; |
3664 |
3663 |
3665 // Final check of all ranges after ergonomics which may change values. |
3664 // Final check of all ranges after ergonomics which may change values. |
3666 if (!CommandLineFlagRangeList::check_ranges()) { |
3665 if (!JVMFlagRangeList::check_ranges()) { |
3667 return JNI_EINVAL; |
3666 return JNI_EINVAL; |
3668 } |
3667 } |
3669 |
3668 |
3670 // Final check of all 'AfterErgo' constraints after ergonomics which may change values. |
3669 // Final check of all 'AfterErgo' constraints after ergonomics which may change values. |
3671 bool constraint_result = CommandLineFlagConstraintList::check_constraints(CommandLineFlagConstraint::AfterErgo); |
3670 bool constraint_result = JVMFlagConstraintList::check_constraints(JVMFlagConstraint::AfterErgo); |
3672 if (!constraint_result) { |
3671 if (!constraint_result) { |
3673 return JNI_EINVAL; |
3672 return JNI_EINVAL; |
3674 } |
3673 } |
3675 |
3674 |
3676 CommandLineFlagWriteableList::mark_startup(); |
3675 JVMFlagWriteableList::mark_startup(); |
3677 |
3676 |
3678 if (PauseAtStartup) { |
3677 if (PauseAtStartup) { |
3679 os::pause(); |
3678 os::pause(); |
3680 } |
3679 } |
3681 |
3680 |