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

Remove dummy lists in G1CalculatePointersClosure

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 17
    • None
    • hotspot
    • None
    • gc
    • b19

    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

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

              Dates

                Created:
                Updated:
                Resolved: