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

Track collection set membership in one place

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 8, 9
    • hotspot
    • gc
    • b56

        G1 currently tracks collection set membership in a byte field in the HeapRegion structure and in the _cset_fast_test array (an array of bytes, one per region). There are also three methods for checking collection set membership: HeapRegion::in_collection_set(), G1CollectedHeap::obj_in_cs() and G1CollectedHeap::in_cset_fast_test(), along with a number of asserts to ensure the two data structures are in sync. Remove the HeapRegion byte field and associated accessors and track membership only in the cset array.

              ehelin Erik Helin
              jcoomes John Coomes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: