src/share/vm/runtime/commandLineFlagConstraintsCompiler.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 8112746 Cdiff src/share/vm/runtime/commandLineFlagConstraintsCompiler.cpp

src/share/vm/runtime/commandLineFlagConstraintsCompiler.cpp

Print this page

        

*** 26,43 **** #include "runtime/arguments.hpp" #include "runtime/commandLineFlagConstraintsCompiler.hpp" #include "runtime/globals.hpp" #include "utilities/defaultStream.hpp" ! Flag::Error AliasLevelConstraintFunc(bool verbose, intx* value) { ! if ((*value <= 1) && (Arguments::mode() == Arguments::_comp)) { ! if (verbose == true) { ! jio_fprintf(defaultStream::error_stream(), "AliasLevel (" INTX_FORMAT ") is not compatible " "with -Xcomp \n", ! *value); ! } return Flag::VIOLATES_CONSTRAINT; } else { return Flag::SUCCESS; } } --- 26,50 ---- #include "runtime/arguments.hpp" #include "runtime/commandLineFlagConstraintsCompiler.hpp" #include "runtime/globals.hpp" #include "utilities/defaultStream.hpp" ! static void print_error_if_needed(bool verbose, const char* msg, ...) { ! if (verbose) { ! va_list listPointer; ! va_start(listPointer, msg); ! jio_vfprintf(defaultStream::error_stream(), msg, listPointer); ! va_end(listPointer); ! } ! } ! ! Flag::Error AliasLevelConstraintFunc(bool verbose, intx value) { ! if ((value <= 1) && (Arguments::mode() == Arguments::_comp)) { ! print_error_if_needed(verbose, "AliasLevel (" INTX_FORMAT ") is not compatible " "with -Xcomp \n", ! value); return Flag::VIOLATES_CONSTRAINT; } else { return Flag::SUCCESS; } }
src/share/vm/runtime/commandLineFlagConstraintsCompiler.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File