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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: