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

Shenandoah: Full GC should enqueue string deduplication candidates regardless their ages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 8-shenandoah, 11, 16, 17
    • Fix Version/s: None
    • Component/s: hotspot
    • Subcomponent:
      gc

      Description

      Shenandoah Full GC does not preserve age-bits in mark word, so running full GC with string deduplication on, actually dedups nothing.

      e.g. running TestStringDedupStress.java with passive mode and disable degenerated GC, will result nothing dedupped.

      Since full GC should recover as much memory as possible, we should deduplicate as many string as possible, disregard if their ages reach threshold.
       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              zgu Zhengyu Gu
              Reporter:
              zgu Zhengyu Gu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: