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

Change the order of fallback full GCs in G1

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 17
    • hotspot
    • gc
    • b26

      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.

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

              Created:
              Updated:
              Resolved: