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

G1: Investigate dropping the second card table

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • hotspot
    • gc

      With JDK-8342382 G1 uses two card tables that are used alternatively as the actual card table, and the "refinement" table.

      In a fairly large amount of applications, the refinement never kicks in, so the second card table is kind of wasted memory a lot of times.

      Investigate whether the second card table could not be initialized if not needed.

      Currently, during GC, we use the second card table to store evacuation failure results and the next cards for simplicity. I think the cards generated during gc are disjunct from the cards scanned during gc, so probably this is not a problem.

      Could save the extra memory in a lot of cases.

            Unassigned Unassigned
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: