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

src/share/vm/runtime/arguments.cpp

Print this page




3736 #endif // INCLUDE_CDS
3737 
3738   return JNI_OK;
3739 }
3740 
3741 jint Arguments::apply_ergo() {
3742 
3743   // Set flags based on ergonomics.
3744   set_ergonomics_flags();
3745 
3746   set_shared_spaces_flags();
3747 
3748   // Check the GC selections again.
3749   if (!check_gc_consistency()) {
3750     return JNI_EINVAL;
3751   }
3752 
3753   if (TieredCompilation) {
3754     set_tiered_flags();
3755   } else {
3756     // Check if the policy is valid. Policies 0 and 1 are valid for non-tiered setup.
3757     if (CompilationPolicyChoice >= 2) {




3758       vm_exit_during_initialization(
3759         "Incompatible compilation policy selected", NULL);
3760     }
3761     // Scale CompileThreshold
3762     // CompileThresholdScaling == 0.0 is equivalent to -Xint and leaves CompileThreshold unchanged.
3763     if (!FLAG_IS_DEFAULT(CompileThresholdScaling) && CompileThresholdScaling > 0.0) {
3764       FLAG_SET_ERGO(intx, CompileThreshold, scaled_compile_threshold(CompileThreshold));
3765     }
3766   }
3767 
3768 #ifdef COMPILER2
3769 #ifndef PRODUCT
3770   if (PrintIdealGraphLevel > 0) {
3771     FLAG_SET_ERGO(bool, PrintIdealGraph, true);
3772   }
3773 #endif
3774 #endif
3775 
3776   // Set heap size based on available physical memory
3777   set_heap_size();




3736 #endif // INCLUDE_CDS
3737 
3738   return JNI_OK;
3739 }
3740 
3741 jint Arguments::apply_ergo() {
3742 
3743   // Set flags based on ergonomics.
3744   set_ergonomics_flags();
3745 
3746   set_shared_spaces_flags();
3747 
3748   // Check the GC selections again.
3749   if (!check_gc_consistency()) {
3750     return JNI_EINVAL;
3751   }
3752 
3753   if (TieredCompilation) {
3754     set_tiered_flags();
3755   } else {
3756     int max_compilation_policy_choice = 1;
3757 #ifdef COMPILER2
3758     max_compilation_policy_choice = 2;
3759 #endif
3760     // Check if the policy is valid.
3761     if (CompilationPolicyChoice >= max_compilation_policy_choice) {
3762       vm_exit_during_initialization(
3763         "Incompatible compilation policy selected", NULL);
3764     }
3765     // Scale CompileThreshold
3766     // CompileThresholdScaling == 0.0 is equivalent to -Xint and leaves CompileThreshold unchanged.
3767     if (!FLAG_IS_DEFAULT(CompileThresholdScaling) && CompileThresholdScaling > 0.0) {
3768       FLAG_SET_ERGO(intx, CompileThreshold, scaled_compile_threshold(CompileThreshold));
3769     }
3770   }
3771 
3772 #ifdef COMPILER2
3773 #ifndef PRODUCT
3774   if (PrintIdealGraphLevel > 0) {
3775     FLAG_SET_ERGO(bool, PrintIdealGraph, true);
3776   }
3777 #endif
3778 #endif
3779 
3780   // Set heap size based on available physical memory
3781   set_heap_size();


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