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

G1: Return memory in Dirty Card buffer allocator to OS

XMLWordPrintable

    • gc

      For `G1BarrierSet::_dirty_card_queue_buffer_allocator`, in redirty_logged_cards, after merging cards into the barrier set’s dcq set, one can consider reduce the length of the underlying free list.

      As part of that, need to figure out what data needs to be tracked for reduction heuristics. One value is the minimum _free_count. When allocating, have an additional member (_free_min) that tracks the minimum value of _free_count.
      Note that reduction increases the risk of buffer allocation failure at some inopportune time later.

      The removed `reduce_free_list` in JDK-8286387 might provide much inspiration, even if the code can't be used verbatim.

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

              Created:
              Updated: