< prev index next >

src/share/vm/runtime/commandLineFlagRangeList.cpp

Print this page




 359                               EMIT_RANGE_NOTPRODUCT_FLAG,
 360                               EMIT_RANGE_CHECK,
 361                               IGNORE_CONSTRAINT,
 362                               IGNORE_WRITEABLE));
 363 #endif // COMPILER2
 364 
 365 #if INCLUDE_ALL_GCS
 366   emit_range_no(NULL G1_FLAGS(EMIT_RANGE_DEVELOPER_FLAG,
 367                               EMIT_RANGE_PD_DEVELOPER_FLAG,
 368                               EMIT_RANGE_PRODUCT_FLAG,
 369                               EMIT_RANGE_PD_PRODUCT_FLAG,
 370                               EMIT_RANGE_DIAGNOSTIC_FLAG,
 371                               EMIT_RANGE_PD_DIAGNOSTIC_FLAG,
 372                               EMIT_RANGE_EXPERIMENTAL_FLAG,
 373                               EMIT_RANGE_NOTPRODUCT_FLAG,
 374                               EMIT_RANGE_MANAGEABLE_FLAG,
 375                               EMIT_RANGE_PRODUCT_RW_FLAG,
 376                               EMIT_RANGE_CHECK,
 377                               IGNORE_CONSTRAINT,
 378                               IGNORE_WRITEABLE));













 379 #endif // INCLUDE_ALL_GCS
 380 }
 381 
 382 CommandLineFlagRange* CommandLineFlagRangeList::find(const char* name) {
 383   CommandLineFlagRange* found = NULL;
 384   for (int i=0; i<length(); i++) {
 385     CommandLineFlagRange* range = at(i);
 386     if (strcmp(range->name(), name) == 0) {
 387       found = range;
 388       break;
 389     }
 390   }
 391   return found;
 392 }
 393 
 394 void CommandLineFlagRangeList::print(outputStream* st, const char* name, RangeStrFunc default_range_str_func) {
 395   CommandLineFlagRange* range = CommandLineFlagRangeList::find(name);
 396   if (range != NULL) {
 397     range->print(st);
 398   } else {




 359                               EMIT_RANGE_NOTPRODUCT_FLAG,
 360                               EMIT_RANGE_CHECK,
 361                               IGNORE_CONSTRAINT,
 362                               IGNORE_WRITEABLE));
 363 #endif // COMPILER2
 364 
 365 #if INCLUDE_ALL_GCS
 366   emit_range_no(NULL G1_FLAGS(EMIT_RANGE_DEVELOPER_FLAG,
 367                               EMIT_RANGE_PD_DEVELOPER_FLAG,
 368                               EMIT_RANGE_PRODUCT_FLAG,
 369                               EMIT_RANGE_PD_PRODUCT_FLAG,
 370                               EMIT_RANGE_DIAGNOSTIC_FLAG,
 371                               EMIT_RANGE_PD_DIAGNOSTIC_FLAG,
 372                               EMIT_RANGE_EXPERIMENTAL_FLAG,
 373                               EMIT_RANGE_NOTPRODUCT_FLAG,
 374                               EMIT_RANGE_MANAGEABLE_FLAG,
 375                               EMIT_RANGE_PRODUCT_RW_FLAG,
 376                               EMIT_RANGE_CHECK,
 377                               IGNORE_CONSTRAINT,
 378                               IGNORE_WRITEABLE));
 379   emit_range_no(NULL EPSILON_FLAGS(EMIT_RANGE_DEVELOPER_FLAG,
 380                               EMIT_RANGE_PD_DEVELOPER_FLAG,
 381                               EMIT_RANGE_PRODUCT_FLAG,
 382                               EMIT_RANGE_PD_PRODUCT_FLAG,
 383                               EMIT_RANGE_DIAGNOSTIC_FLAG,
 384                               EMIT_RANGE_PD_DIAGNOSTIC_FLAG,
 385                               EMIT_RANGE_EXPERIMENTAL_FLAG,
 386                               EMIT_RANGE_NOTPRODUCT_FLAG,
 387                               EMIT_RANGE_MANAGEABLE_FLAG,
 388                               EMIT_RANGE_PRODUCT_RW_FLAG,
 389                               EMIT_RANGE_CHECK,
 390                               IGNORE_CONSTRAINT,
 391                               IGNORE_WRITEABLE));
 392 #endif // INCLUDE_ALL_GCS
 393 }
 394 
 395 CommandLineFlagRange* CommandLineFlagRangeList::find(const char* name) {
 396   CommandLineFlagRange* found = NULL;
 397   for (int i=0; i<length(); i++) {
 398     CommandLineFlagRange* range = at(i);
 399     if (strcmp(range->name(), name) == 0) {
 400       found = range;
 401       break;
 402     }
 403   }
 404   return found;
 405 }
 406 
 407 void CommandLineFlagRangeList::print(outputStream* st, const char* name, RangeStrFunc default_range_str_func) {
 408   CommandLineFlagRange* range = CommandLineFlagRangeList::find(name);
 409   if (range != NULL) {
 410     range->print(st);
 411   } else {


< prev index next >