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

Change the order of fallback full GCs in G1

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b26

      Description

      The code trying to make sure there is space to allocate in after a young collections looks a bit backwards. Currently we have three levels of fall back full GCs doing like this:
      1. Upgraded no free regions, will clear soft references, not maximal
      2. Satisfy failed alloc #1, will not clearing soft references, not maximal
      3. Satisfy failed alloc #2, will clear soft references and maximal

      To me it would feel more natural to have:
      1. Upgraded, not clear, not maximal
      2. Satisfy #1, clear, not maximal
      3. Satisfy #2, clear and maximal

      We need to investigate this a bit to make sure there is not important reason for clearing the soft references in the first "upgraded" full GC.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sjohanss Stefan Johansson
              Reporter:
              sjohanss Stefan Johansson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: