--- old/src/share/vm/runtime/commandLineFlagConstraintList.cpp 2015-08-24 10:52:50.712876506 -0700 +++ new/src/share/vm/runtime/commandLineFlagConstraintList.cpp 2015-08-24 10:52:50.608876510 -0700 @@ -274,7 +274,7 @@ EMIT_CONSTRAINT_CHECK)); #endif // COMPILER2 -#ifndef INCLUDE_ALL_GCS +#if INCLUDE_ALL_GCS emit_constraint_no(NULL G1_FLAGS(EMIT_CONSTRAINT_DEVELOPER_FLAG, EMIT_CONSTRAINT_PD_DEVELOPER_FLAG, EMIT_CONSTRAINT_PRODUCT_FLAG, @@ -305,10 +305,7 @@ // Check constraints for specific constraint type. bool CommandLineFlagConstraintList::check_constraints(CommandLineFlagConstraint::ConstraintType type) { - // Skip if we already checked. - if (type < _validating_type) { - return true; - } + guarantee(type > _validating_type, "Constraint check is out of order."); _validating_type = type; bool status = true;