JDK-7041879 : G1: introduce stress testing parameter to cause frequent evacuation failures
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs21
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-05-04
  • Updated: 2013-09-18
  • Resolved: 2012-09-05
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 7 JDK 8 Other
7u40Fixed 8Fixed hs24Fixed
It would be helpful to introduce a testing parameter in G1 which causes frequent evacuation failures to stress test the evacuation failure handling code. Other GCs use the following two parameters for this: PromotionFailureALot and PromotionFailureALotCount. We could either re-use them or rename them in a more G1-friendly way.

SUGGESTED FIX Use PromotionFailureALot as the base but extend it to in include being able to generate or not generate foreced evacuation failures during: * young GCs * initial mark GCs * while concurrent marking is in progress. * during mixed GCs.

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/c9814fadeb38