JDK-8139651 : ConcurrentG1Refine uses ints for many of its members that should be unsigned types
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-10-15
  • Updated: 2018-06-21
  • Resolved: 2016-02-27
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 b110Fixed
Related Reports
Relates :  
Description
The members:
  int _green_zone;
  int _yellow_zone;
  int _red_zone;

  int _thread_threshold_step;

of ConcurrentG1Refine should be some unsigned quantity, not signed. That will also allow removal of lots of safety "if (XY >= 0 && ...)" checks in the code.

There is a preliminary patch attached that fixes that.