--- old/src/share/vm/runtime/commandLineFlagConstraintsCompiler.cpp 2017-07-03 09:17:24.589087491 +0200 +++ new/src/share/vm/runtime/commandLineFlagConstraintsCompiler.cpp 2017-07-03 09:17:24.493087494 +0200 @@ -332,6 +332,17 @@ } } +Flag::Error UseAVXConstraintFunc(intx value, bool verbose) { + if (value > 2 && !UnlockExperimentalVMOptions) { + CommandLineError::print(verbose, + "UseAVX (" UINTX_FORMAT ") is experimental and must be " + "enabled via -XX:+UnlockExperimentalVMOptions \n", value); + return Flag::VIOLATES_CONSTRAINT; + } else { + return Flag::SUCCESS; + } +} + #ifdef COMPILER2 Flag::Error InteriorEntryAlignmentConstraintFunc(intx value, bool verbose) { if (InteriorEntryAlignment > CodeEntryAlignment) {