hotspot/src/share/vm/runtime/commandLineFlagConstraintsCompiler.cpp
changeset 31995 aa4049b4184a
parent 31371 311143309e73
child 31996 6c23ab90cbaa
equal deleted inserted replaced
31994:3721b7aa3a0d 31995:aa4049b4184a
    27 #include "runtime/commandLineFlagConstraintsCompiler.hpp"
    27 #include "runtime/commandLineFlagConstraintsCompiler.hpp"
    28 #include "runtime/globals.hpp"
    28 #include "runtime/globals.hpp"
    29 #include "utilities/defaultStream.hpp"
    29 #include "utilities/defaultStream.hpp"
    30 
    30 
    31 Flag::Error AliasLevelConstraintFunc(bool verbose, intx* value) {
    31 Flag::Error AliasLevelConstraintFunc(bool verbose, intx* value) {
    32   if (CommandLineFlags::finishedInitializing() == true) {
    32   if ((*value <= 1) && (Arguments::mode() == Arguments::_comp)) {
    33     if ((*value <= 1) && (Arguments::mode() == Arguments::_comp)) {
    33     if (verbose == true) {
    34       if (verbose == true) {
    34       jio_fprintf(defaultStream::error_stream(),
    35         jio_fprintf(defaultStream::error_stream(),
    35                 "AliasLevel (" INTX_FORMAT ") is not compatible "
    36                   "AliasLevel (" INTX_FORMAT ") is not compatible "
    36                 "with -Xcomp \n",
    37                   "with -Xcomp \n",
    37                 *value);
    38                   *value);
       
    39       }
       
    40       return Flag::VIOLATES_CONSTRAINT;
       
    41     }
    38     }
       
    39     return Flag::VIOLATES_CONSTRAINT;
       
    40   } else {
       
    41     return Flag::SUCCESS;
    42   }
    42   }
    43   return Flag::SUCCESS;
       
    44 }
    43 }