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

Parallel: Investigate Mark-Compact for Full GC to decrease memory usage

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 23
    • hotspot
    • gc
    • b25

      Parallel full-GC employs two bitmaps to track object start and end points. This configuration necessitates a larger memory footprint, with each bitmap consuming approximately 1.5% of the heap size.

      Transitioning to the mark-compact algorithm (the same one used in Serial/G1 full-GC) can mitigate the memory footprint and bring it more in line with other garbage collectors.

      Under the new algorithm, after marking, three phases ensue: calculating new addresses for objects, forwarding them, and relocating objects to their new addresses.

      The relocation phase will largely reuse the logic and implementation from the existing algorithm.

            ayang Albert Yang
            ayang Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: