equal
deleted
inserted
replaced
112 return Flag::SUCCESS; |
112 return Flag::SUCCESS; |
113 } |
113 } |
114 |
114 |
115 static Flag::Error MinPLABSizeBounds(const char* name, size_t value, bool verbose) { |
115 static Flag::Error MinPLABSizeBounds(const char* name, size_t value, bool verbose) { |
116 #if INCLUDE_ALL_GCS |
116 #if INCLUDE_ALL_GCS |
117 if ((UseConcMarkSweepGC || UseG1GC) && (value < PLAB::min_size())) { |
117 if ((UseConcMarkSweepGC || UseG1GC || UseParallelGC) && (value < PLAB::min_size())) { |
118 CommandLineError::print(verbose, |
118 CommandLineError::print(verbose, |
119 "%s (" SIZE_FORMAT ") must be " |
119 "%s (" SIZE_FORMAT ") must be " |
120 "greater than or equal to ergonomic PLAB minimum size (" SIZE_FORMAT ")\n", |
120 "greater than or equal to ergonomic PLAB minimum size (" SIZE_FORMAT ")\n", |
121 name, value, PLAB::min_size()); |
121 name, value, PLAB::min_size()); |
122 return Flag::VIOLATES_CONSTRAINT; |
122 return Flag::VIOLATES_CONSTRAINT; |
125 return Flag::SUCCESS; |
125 return Flag::SUCCESS; |
126 } |
126 } |
127 |
127 |
128 static Flag::Error MaxPLABSizeBounds(const char* name, size_t value, bool verbose) { |
128 static Flag::Error MaxPLABSizeBounds(const char* name, size_t value, bool verbose) { |
129 #if INCLUDE_ALL_GCS |
129 #if INCLUDE_ALL_GCS |
130 if ((UseConcMarkSweepGC || UseG1GC) && (value > PLAB::max_size())) { |
130 if ((UseConcMarkSweepGC || UseG1GC || UseParallelGC) && (value > PLAB::max_size())) { |
131 CommandLineError::print(verbose, |
131 CommandLineError::print(verbose, |
132 "%s (" SIZE_FORMAT ") must be " |
132 "%s (" SIZE_FORMAT ") must be " |
133 "less than or equal to ergonomic PLAB maximum size (" SIZE_FORMAT ")\n", |
133 "less than or equal to ergonomic PLAB maximum size (" SIZE_FORMAT ")\n", |
134 name, value, PLAB::max_size()); |
134 name, value, PLAB::max_size()); |
135 return Flag::VIOLATES_CONSTRAINT; |
135 return Flag::VIOLATES_CONSTRAINT; |