src/share/vm/runtime/commandLineFlagConstraintsCompiler.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/share/vm/runtime/commandLineFlagConstraintsCompiler.cpp	Fri Jul 31 12:40:14 2015
--- new/src/share/vm/runtime/commandLineFlagConstraintsCompiler.cpp	Fri Jul 31 12:40:14 2015

*** 26,43 **** --- 26,50 ---- #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(), ! 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); } ! 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