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

Remove dummy lists in G1CalculatePointersClosure

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Duplicate
    • P4
    • None
    • None
    • hotspot
    • None
    • gc

    Description

      `G1CalculatePointersClosure::free_humongous_region` uses a dummy list on calling `free_humongous_region`.

      ```
        _g1h->free_humongous_region(hr, &dummy_free_list);
        prepare_for_compaction(hr);
        dummy_free_list.remove_all();
      ```
      Usually, we use this list to collect reclaimed regions, which are added to the region free list.

      However, in a Full GC, we don't construct the free list; instead , the whole heap (except some special regions) is compacted. Therefore, we can remove remove this dummy list; using `nullptr` as the argument. The same arguement goes for `free_open_archive_region` right below.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: