# HG changeset patch # User sangheki # Date 1459529150 25200 # Node ID 07d212151499c009310794d9b2e418c38b1c23c9 # Parent e8e67446954520ef6f6759002149a072863f7e40 8153201: TestOptionsWithRanges fails with -XX:OldPLABSize=2147483648 Summary: Add parallel gc into min/max PLAB constraint function Reviewed-by: brutisso, tbenson diff -r e8e674469545 -r 07d212151499 hotspot/src/share/vm/runtime/commandLineFlagConstraintsGC.cpp --- a/hotspot/src/share/vm/runtime/commandLineFlagConstraintsGC.cpp Fri Apr 01 09:43:13 2016 -0700 +++ b/hotspot/src/share/vm/runtime/commandLineFlagConstraintsGC.cpp Fri Apr 01 09:45:50 2016 -0700 @@ -114,7 +114,7 @@ static Flag::Error MinPLABSizeBounds(const char* name, size_t value, bool verbose) { #if INCLUDE_ALL_GCS - if ((UseConcMarkSweepGC || UseG1GC) && (value < PLAB::min_size())) { + if ((UseConcMarkSweepGC || UseG1GC || UseParallelGC) && (value < PLAB::min_size())) { CommandLineError::print(verbose, "%s (" SIZE_FORMAT ") must be " "greater than or equal to ergonomic PLAB minimum size (" SIZE_FORMAT ")\n", @@ -127,7 +127,7 @@ static Flag::Error MaxPLABSizeBounds(const char* name, size_t value, bool verbose) { #if INCLUDE_ALL_GCS - if ((UseConcMarkSweepGC || UseG1GC) && (value > PLAB::max_size())) { + if ((UseConcMarkSweepGC || UseG1GC || UseParallelGC) && (value > PLAB::max_size())) { CommandLineError::print(verbose, "%s (" SIZE_FORMAT ") must be " "less than or equal to ergonomic PLAB maximum size (" SIZE_FORMAT ")\n",