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

Track collection set membership in one place

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8, 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b56

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ehelin Erik Helin
                  Reporter:
                  jcoomes John Coomes
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: