equal
deleted
inserted
replaced
50 #include "prims/jvmtiThreadState.hpp" |
50 #include "prims/jvmtiThreadState.hpp" |
51 #include "prims/privilegedStack.hpp" |
51 #include "prims/privilegedStack.hpp" |
52 #include "runtime/arguments.hpp" |
52 #include "runtime/arguments.hpp" |
53 #include "runtime/atomic.inline.hpp" |
53 #include "runtime/atomic.inline.hpp" |
54 #include "runtime/biasedLocking.hpp" |
54 #include "runtime/biasedLocking.hpp" |
|
55 #include "runtime/commandLineFlagConstraintList.hpp" |
|
56 #include "runtime/commandLineFlagRangeList.hpp" |
55 #include "runtime/deoptimization.hpp" |
57 #include "runtime/deoptimization.hpp" |
56 #include "runtime/fprofiler.hpp" |
58 #include "runtime/fprofiler.hpp" |
57 #include "runtime/frame.inline.hpp" |
59 #include "runtime/frame.inline.hpp" |
58 #include "runtime/globals.hpp" |
60 #include "runtime/globals.hpp" |
59 #include "runtime/init.hpp" |
61 #include "runtime/init.hpp" |
3320 os::init_before_ergo(); |
3322 os::init_before_ergo(); |
3321 |
3323 |
3322 jint ergo_result = Arguments::apply_ergo(); |
3324 jint ergo_result = Arguments::apply_ergo(); |
3323 if (ergo_result != JNI_OK) return ergo_result; |
3325 if (ergo_result != JNI_OK) return ergo_result; |
3324 |
3326 |
3325 // Final check of all arguments after ergonomics which may change values. |
3327 // Final check of all ranges after ergonomics which may change values. |
3326 if (!CommandLineFlags::check_all_ranges_and_constraints()) { |
3328 if (!CommandLineFlagRangeList::check_ranges()) { |
|
3329 return JNI_EINVAL; |
|
3330 } |
|
3331 |
|
3332 // Final check of all 'AfterErgo' constraints after ergonomics which may change values. |
|
3333 bool constraint_result = CommandLineFlagConstraintList::check_constraints(CommandLineFlagConstraint::AfterErgo); |
|
3334 Arguments::post_after_ergo_constraint_check(constraint_result); |
|
3335 if (!constraint_result) { |
3327 return JNI_EINVAL; |
3336 return JNI_EINVAL; |
3328 } |
3337 } |
3329 |
3338 |
3330 if (PauseAtStartup) { |
3339 if (PauseAtStartup) { |
3331 os::pause(); |
3340 os::pause(); |