JDK-8273882 : Only enable preventive garbage collections if humongous eager reclaim is enabled
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 18
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2021-09-16
  • Updated: 2022-07-08
  • Resolved: 2022-07-08
Related Reports
Relates :  
Relates :  
Description
Preventive garbage collections are scheduled in advance to avoid evacuation failures in the hope that these garbage collections free up space - space to be reclaimed from humongous objects using eager reclaim.

For this reason, if eager reclaim is disabled, preventive collections should also be disabled as eager reclaim is the only way to reclaim space (in old gen) during young collections.
Comments
There is no way to disable humongous eager reclaim any more since JDK-8137280 has been implemented
08-07-2022