Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6990095

Deprecate and eliminate -XX:-HandlePromotionFailure

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • hs20
    • hs19
    • hotspot
    • None
    • gc
    • generic
    • generic

      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).

            ysr Y. Ramakrishna
            ysr Y. Ramakrishna
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: