JDK-8134856 : Incorrect use of PLAB::min_size() in MaxPLABSizeBounds
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-09-01
  • Updated: 2015-11-09
  • Resolved: 2015-09-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b83Fixed
Related Reports
Blocks :  
Relates :  
Description
The method MaxPLABSizeBounds() in runtime/commandLineFlagConstraintsGC.cpp uses PLAB::min_size() in the error string instead of PLAB::max_size().

E.g.

 118 static Flag::Error MaxPLABSizeBounds(const char* name, size_t value, bool verbose) {
 119 #if INCLUDE_ALL_GCS
 120   if ((UseConcMarkSweepGC || UseG1GC) && (value > PLAB::max_size())) {
 121     CommandLineError::print(verbose,
 122                             "%s (" SIZE_FORMAT ") must be "
 123                             "less than or equal to ergonomic PLAB maximum size (" SIZE_FORMAT ")\n",
 124                             name, value, PLAB::min_size());
 125     return Flag::VIOLATES_CONSTRAINT;
 126   }
 127 #endif // INCLUDE_ALL_GCS
 128   return Flag::SUCCESS;
 129 }

See line 124