< prev index next > src/hotspot/share/runtime/flags/jvmFlagConstraintsRuntime.cpp
Print this page
#include "runtime/os.hpp"
#include "runtime/safepointMechanism.hpp"
#include "runtime/task.hpp"
#include "utilities/powerOfTwo.hpp"
+ JVMFlag::Error AOTModeConstraintFunc(ccstr value, bool verbose) {
+ if (strcmp(value, "off") != 0 &&
+ strcmp(value, "record") != 0 &&
+ strcmp(value, "create") != 0 &&
+ strcmp(value, "auto") != 0 &&
+ strcmp(value, "on")) {
+ JVMFlag::printError(verbose,
+ "Unrecognized value %s for AOTMode. Must be one of the following: "
+ "off, record, create, auto, on\n",
+ value);
+ return JVMFlag::VIOLATES_CONSTRAINT;
+ }
+
+ return JVMFlag::SUCCESS;
+ }
JVMFlag::Error ObjectAlignmentInBytesConstraintFunc(int value, bool verbose) {
if (!is_power_of_2(value)) {
JVMFlag::printError(verbose,
"ObjectAlignmentInBytes (%d) must be "
"power of 2\n",
< prev index next >