< prev index next >

src/share/vm/runtime/commandLineFlagConstraintsGC.cpp

Print this page
rev 8851 : [mq]: webrev.00
rev 8852 : [mq]: webrev.01
rev 8853 : [mq]: webrev.02
rev 8854 : [mq]: webrev.03


 383                               value, CMSOldPLABMax);
 384       return Flag::VIOLATES_CONSTRAINT;
 385     }
 386     status = MaxPLABSizeBounds("CMSOldPLABMin", value, verbose);
 387   }
 388 #endif
 389   return status;
 390 }
 391 
 392 Flag::Error CMSOldPLABMaxConstraintFunc(size_t value, bool verbose) {
 393   Flag::Error status = Flag::SUCCESS;
 394 
 395 #if INCLUDE_ALL_GCS
 396   if (UseConcMarkSweepGC) {
 397     status = MaxPLABSizeBounds("CMSOldPLABMax", value, verbose);
 398   }
 399 #endif
 400   return status;
 401 }
 402 












 403 Flag::Error CMSPrecleanDenominatorConstraintFunc(uintx value, bool verbose) {
 404 #if INCLUDE_ALL_GCS
 405   if (UseConcMarkSweepGC && (value <= CMSPrecleanNumerator)) {
 406     CommandLineError::print(verbose,
 407                             "CMSPrecleanDenominator (" UINTX_FORMAT ") must be "
 408                             "strickly greater than CMSPrecleanNumerator (" UINTX_FORMAT ")\n",
 409                             value, CMSPrecleanNumerator);
 410     return Flag::VIOLATES_CONSTRAINT;
 411   }
 412 #endif
 413   return Flag::SUCCESS;
 414 }
 415 
 416 Flag::Error CMSPrecleanNumeratorConstraintFunc(uintx value, bool verbose) {
 417 #if INCLUDE_ALL_GCS
 418   if (UseConcMarkSweepGC && (value >= CMSPrecleanDenominator)) {
 419     CommandLineError::print(verbose,
 420                             "CMSPrecleanNumerator (" UINTX_FORMAT ") must be "
 421                             "less than CMSPrecleanDenominator (" UINTX_FORMAT ")\n",
 422                             value, CMSPrecleanDenominator);




 383                               value, CMSOldPLABMax);
 384       return Flag::VIOLATES_CONSTRAINT;
 385     }
 386     status = MaxPLABSizeBounds("CMSOldPLABMin", value, verbose);
 387   }
 388 #endif
 389   return status;
 390 }
 391 
 392 Flag::Error CMSOldPLABMaxConstraintFunc(size_t value, bool verbose) {
 393   Flag::Error status = Flag::SUCCESS;
 394 
 395 #if INCLUDE_ALL_GCS
 396   if (UseConcMarkSweepGC) {
 397     status = MaxPLABSizeBounds("CMSOldPLABMax", value, verbose);
 398   }
 399 #endif
 400   return status;
 401 }
 402 
 403 Flag::Error MarkStackSizeConstraintFunc(size_t value, bool verbose) {
 404   if (value > MarkStackSizeMax) {
 405     CommandLineError::print(verbose,
 406                             "MarkStackSize (" SIZE_FORMAT ") must be "
 407                             "less than or equal to MarkStackSizeMax (" SIZE_FORMAT ")\n",
 408                             value, MarkStackSizeMax);
 409     return Flag::VIOLATES_CONSTRAINT;
 410   } else {
 411     return Flag::SUCCESS;
 412   }
 413 }
 414 
 415 Flag::Error CMSPrecleanDenominatorConstraintFunc(uintx value, bool verbose) {
 416 #if INCLUDE_ALL_GCS
 417   if (UseConcMarkSweepGC && (value <= CMSPrecleanNumerator)) {
 418     CommandLineError::print(verbose,
 419                             "CMSPrecleanDenominator (" UINTX_FORMAT ") must be "
 420                             "strickly greater than CMSPrecleanNumerator (" UINTX_FORMAT ")\n",
 421                             value, CMSPrecleanNumerator);
 422     return Flag::VIOLATES_CONSTRAINT;
 423   }
 424 #endif
 425   return Flag::SUCCESS;
 426 }
 427 
 428 Flag::Error CMSPrecleanNumeratorConstraintFunc(uintx value, bool verbose) {
 429 #if INCLUDE_ALL_GCS
 430   if (UseConcMarkSweepGC && (value >= CMSPrecleanDenominator)) {
 431     CommandLineError::print(verbose,
 432                             "CMSPrecleanNumerator (" UINTX_FORMAT ") must be "
 433                             "less than CMSPrecleanDenominator (" UINTX_FORMAT ")\n",
 434                             value, CMSPrecleanDenominator);


< prev index next >