JDK-8286586 : G1: Return memory in Dirty Card buffer allocator to OS
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 19
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2022-05-11
  • Updated: 2024-10-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Description
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.