G1: Only preserve marks on objects that are actually moved

XMLWordPrintable

    • gc
    • b07

      The G1 full-GC preserves marks during marking, for all live objects in compaction region. However, not all live objects do actually move. In particular, the start of a compaction chain may have a sediment of all-live objects which would not move, and thus don't need to have their marks preserved.
      The problem can easily be solved by preserving marks during forwarding. That also seems a more natural place to do that.

            Assignee:
            Roman Kennke
            Reporter:
            Roman Kennke
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: