src/hotspot/share/gc/epsilon/epsilonArguments.cpp
branchepsilon-gc-branch
changeset 56022 dd005db4ec5c
parent 55939 c5c3e1a5c3f0
child 56028 267a6ce379ba
equal deleted inserted replaced
56021:864ee22719af 56022:dd005db4ec5c
    36 }
    36 }
    37 
    37 
    38 void EpsilonArguments::initialize_flags() {
    38 void EpsilonArguments::initialize_flags() {
    39   GCArguments::initialize_flags();
    39   GCArguments::initialize_flags();
    40 
    40 
    41   assert(UseEpsilonGC, "Error");
    41   assert(UseEpsilonGC || UseNoGC, "Error");
       
    42 
       
    43   // UseNoGC is the alias, drop and replace it with the a single option:
       
    44   // the rest of the code can use UseEpsilonGC then.
       
    45   if (UseNoGC) {
       
    46     FLAG_SET_DEFAULT(UseEpsilonGC, true);
       
    47     FLAG_SET_DEFAULT(UseNoGC, false);
       
    48   }
    42 
    49 
    43   // Forcefully exit when OOME is detected. Nothing we can do at that point.
    50   // Forcefully exit when OOME is detected. Nothing we can do at that point.
    44   if (FLAG_IS_DEFAULT(ExitOnOutOfMemoryError)) {
    51   if (FLAG_IS_DEFAULT(ExitOnOutOfMemoryError)) {
    45     FLAG_SET_DEFAULT(ExitOnOutOfMemoryError, true);
    52     FLAG_SET_DEFAULT(ExitOnOutOfMemoryError, true);
    46   }
    53   }