< prev index next >

src/share/vm/runtime/commandLineFlagConstraintList.cpp

Print this page




 280                                    EMIT_CONSTRAINT_NOTPRODUCT_FLAG,
 281                                    IGNORE_RANGE,
 282                                    EMIT_CONSTRAINT_CHECK,
 283                                    IGNORE_WRITEABLE));
 284 #endif // COMPILER2
 285 
 286 #if INCLUDE_ALL_GCS
 287   emit_constraint_no(NULL G1_FLAGS(EMIT_CONSTRAINT_DEVELOPER_FLAG,
 288                                    EMIT_CONSTRAINT_PD_DEVELOPER_FLAG,
 289                                    EMIT_CONSTRAINT_PRODUCT_FLAG,
 290                                    EMIT_CONSTRAINT_PD_PRODUCT_FLAG,
 291                                    EMIT_CONSTRAINT_DIAGNOSTIC_FLAG,
 292                                    EMIT_CONSTRAINT_PD_DIAGNOSTIC_FLAG,
 293                                    EMIT_CONSTRAINT_EXPERIMENTAL_FLAG,
 294                                    EMIT_CONSTRAINT_NOTPRODUCT_FLAG,
 295                                    EMIT_CONSTRAINT_MANAGEABLE_FLAG,
 296                                    EMIT_CONSTRAINT_PRODUCT_RW_FLAG,
 297                                    IGNORE_RANGE,
 298                                    EMIT_CONSTRAINT_CHECK,
 299                                    IGNORE_WRITEABLE));













 300 #endif // INCLUDE_ALL_GCS
 301 }
 302 
 303 CommandLineFlagConstraint* CommandLineFlagConstraintList::find(const char* name) {
 304   CommandLineFlagConstraint* found = NULL;
 305   for (int i=0; i<length(); i++) {
 306     CommandLineFlagConstraint* constraint = at(i);
 307     if (strcmp(constraint->name(), name) == 0) {
 308       found = constraint;
 309       break;
 310     }
 311   }
 312   return found;
 313 }
 314 
 315 // Find constraints by name and return only if found constraint's type is equal or lower than current validating type.
 316 CommandLineFlagConstraint* CommandLineFlagConstraintList::find_if_needs_check(const char* name) {
 317   CommandLineFlagConstraint* found = NULL;
 318   CommandLineFlagConstraint* constraint = find(name);
 319   if (constraint && (constraint->type() <= _validating_type)) {




 280                                    EMIT_CONSTRAINT_NOTPRODUCT_FLAG,
 281                                    IGNORE_RANGE,
 282                                    EMIT_CONSTRAINT_CHECK,
 283                                    IGNORE_WRITEABLE));
 284 #endif // COMPILER2
 285 
 286 #if INCLUDE_ALL_GCS
 287   emit_constraint_no(NULL G1_FLAGS(EMIT_CONSTRAINT_DEVELOPER_FLAG,
 288                                    EMIT_CONSTRAINT_PD_DEVELOPER_FLAG,
 289                                    EMIT_CONSTRAINT_PRODUCT_FLAG,
 290                                    EMIT_CONSTRAINT_PD_PRODUCT_FLAG,
 291                                    EMIT_CONSTRAINT_DIAGNOSTIC_FLAG,
 292                                    EMIT_CONSTRAINT_PD_DIAGNOSTIC_FLAG,
 293                                    EMIT_CONSTRAINT_EXPERIMENTAL_FLAG,
 294                                    EMIT_CONSTRAINT_NOTPRODUCT_FLAG,
 295                                    EMIT_CONSTRAINT_MANAGEABLE_FLAG,
 296                                    EMIT_CONSTRAINT_PRODUCT_RW_FLAG,
 297                                    IGNORE_RANGE,
 298                                    EMIT_CONSTRAINT_CHECK,
 299                                    IGNORE_WRITEABLE));
 300   emit_constraint_no(NULL EPSILON_FLAGS(EMIT_CONSTRAINT_DEVELOPER_FLAG,
 301                                    EMIT_CONSTRAINT_PD_DEVELOPER_FLAG,
 302                                    EMIT_CONSTRAINT_PRODUCT_FLAG,
 303                                    EMIT_CONSTRAINT_PD_PRODUCT_FLAG,
 304                                    EMIT_CONSTRAINT_DIAGNOSTIC_FLAG,
 305                                    EMIT_CONSTRAINT_PD_DIAGNOSTIC_FLAG,
 306                                    EMIT_CONSTRAINT_EXPERIMENTAL_FLAG,
 307                                    EMIT_CONSTRAINT_NOTPRODUCT_FLAG,
 308                                    EMIT_CONSTRAINT_MANAGEABLE_FLAG,
 309                                    EMIT_CONSTRAINT_PRODUCT_RW_FLAG,
 310                                    IGNORE_RANGE,
 311                                    EMIT_CONSTRAINT_CHECK,
 312                                    IGNORE_WRITEABLE));
 313 #endif // INCLUDE_ALL_GCS
 314 }
 315 
 316 CommandLineFlagConstraint* CommandLineFlagConstraintList::find(const char* name) {
 317   CommandLineFlagConstraint* found = NULL;
 318   for (int i=0; i<length(); i++) {
 319     CommandLineFlagConstraint* constraint = at(i);
 320     if (strcmp(constraint->name(), name) == 0) {
 321       found = constraint;
 322       break;
 323     }
 324   }
 325   return found;
 326 }
 327 
 328 // Find constraints by name and return only if found constraint's type is equal or lower than current validating type.
 329 CommandLineFlagConstraint* CommandLineFlagConstraintList::find_if_needs_check(const char* name) {
 330   CommandLineFlagConstraint* found = NULL;
 331   CommandLineFlagConstraint* constraint = find(name);
 332   if (constraint && (constraint->type() <= _validating_type)) {


< prev index next >