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

src/share/vm/runtime/arguments.cpp

Print this page




 983   BackgroundCompilation      = Arguments::_BackgroundCompilation;
 984 
 985   // Change from defaults based on mode
 986   switch (mode) {
 987   default:
 988     ShouldNotReachHere();
 989     break;
 990   case _int:
 991     UseCompiler              = false;
 992     UseLoopCounter           = false;
 993     AlwaysCompileLoopMethods = false;
 994     UseOnStackReplacement    = false;
 995     break;
 996   case _mixed:
 997     // same as default
 998     break;
 999   case _comp:
1000     UseInterpreter           = false;
1001     BackgroundCompilation    = false;
1002     ClipInlining             = false;







1003     break;
1004   }
1005 }
1006 
1007 // Conflict: required to use shared spaces (-Xshare:on), but
1008 // incompatible command line options were chosen.
1009 
1010 static void no_shared_spaces() {
1011   if (RequireSharedSpaces) {
1012     jio_fprintf(defaultStream::error_stream(),
1013       "Class data sharing is inconsistent with other specified options.\n");
1014     vm_exit_during_initialization("Unable to use shared archive.", NULL);
1015   } else {
1016     FLAG_SET_DEFAULT(UseSharedSpaces, false);
1017   }
1018 }
1019 
1020 void Arguments::set_tiered_flags() {
1021   // With tiered, set default policy to AdvancedThresholdPolicy, which is 3.
1022   if (FLAG_IS_DEFAULT(CompilationPolicyChoice)) {




 983   BackgroundCompilation      = Arguments::_BackgroundCompilation;
 984 
 985   // Change from defaults based on mode
 986   switch (mode) {
 987   default:
 988     ShouldNotReachHere();
 989     break;
 990   case _int:
 991     UseCompiler              = false;
 992     UseLoopCounter           = false;
 993     AlwaysCompileLoopMethods = false;
 994     UseOnStackReplacement    = false;
 995     break;
 996   case _mixed:
 997     // same as default
 998     break;
 999   case _comp:
1000     UseInterpreter           = false;
1001     BackgroundCompilation    = false;
1002     ClipInlining             = false;
1003     // Be much more aggressive in tiered mode with -Xcomp and exercise C2 more.
1004     // We will first compile a level 3 version, then do one invocation of it and 
1005     // compile a level 4 and then continue executing it. 
1006     if (TieredCompilation) {
1007       Tier3InvokeNotifyFreqLog = 0;
1008       Tier4InvocationThreshold = 0;
1009     }
1010     break;
1011   }
1012 }
1013 
1014 // Conflict: required to use shared spaces (-Xshare:on), but
1015 // incompatible command line options were chosen.
1016 
1017 static void no_shared_spaces() {
1018   if (RequireSharedSpaces) {
1019     jio_fprintf(defaultStream::error_stream(),
1020       "Class data sharing is inconsistent with other specified options.\n");
1021     vm_exit_during_initialization("Unable to use shared archive.", NULL);
1022   } else {
1023     FLAG_SET_DEFAULT(UseSharedSpaces, false);
1024   }
1025 }
1026 
1027 void Arguments::set_tiered_flags() {
1028   // With tiered, set default policy to AdvancedThresholdPolicy, which is 3.
1029   if (FLAG_IS_DEFAULT(CompilationPolicyChoice)) {


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