JDK-6990095 : Deprecate and eliminate -XX:-HandlePromotionFailure
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs19
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2010-10-06
  • Updated: 2011-02-05
  • Resolved: 2011-02-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.
Other
hs20Resolved
Related Reports
Duplicate :  
Description
The remnants of the code to support GC configs in which HandlePromotionFailure
might be disabled should be removed since it appears to serve no useful purpose.

As ###@###.### has pointed out only single-threaded serial gc
can currently provably avoid promotion failure, and as everyone seems to agree the
ability to turn it off appears to provide no real advantage (except for
switching off the paths that unwind from a failed scavenge because of
promotion failure, paths that have by now been tested thoroughly).

As a result it appears to make sense to remove support for that flag
and eliminate code that expects to run in a configuration where
promotion failure handling is disabled.

For the history buffs, promotion failure handling became the default
for all of HotSpot's collectors by 6.0 (and much earlier for some of the
collectors).

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/a7214d79fcf1
25-10-2010

SUGGESTED FIX The change is being rolled in with that for:- 6896603 CMS/GCH: incremental_collection_will_fail() should use more current data See:- http://javaweb.sfbay.sun.com/~ysr/neeraja/export/ysr/cms_bail/webrev/
11-10-2010

EVALUATION Fewer lines of code to maintain.
06-10-2010

WORK AROUND drop -XX:+/-HandlePromotionFailure and -XX:MaxLiveObjectEvacuationRatio=... from your JVM options list.
06-10-2010