JDK-6937160 : G1: should observe GCTimeRatio
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs18
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-03-22
  • Updated: 2013-09-18
  • Resolved: 2011-03-08
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 6 JDK 7 Other
6u21Fixed 7Fixed hs17Fixed
Related Reports
Relates :  
Currently, G1 uses the G1GCPercent flag to determine what should be its target GC overhead. The flag is non-product. We recently made changes to the G1 flags to use existing ones where possible (see 6928059 for example).  So G1 should instead observe the existing GCTimeRatio flag instead of introducing a new one.

EVALUATION http://hg.openjdk.java.net/hsx/hsx17/master/rev/a71b16365b3b

EVALUATION http://hg.openjdk.java.net/hsx/hsx17/baseline/rev/a71b16365b3b

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/56507bcd639e

SUGGESTED FIX See Public Comments.

EVALUATION See Public Comments.

PUBLIC COMMENTS This is straightforward to implement. I will remove the G1GCPercent parameter and use GCTimeRatio to define the desired GC overhead for G1.