JDK-8308983 : Let UseGCOverheadLimit work independently of UseAdaptiveSizePolicy in parallel GC
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Priority: P5
  • Status: New
  • Resolution: Unresolved
  • Submitted: 2023-05-27
  • Updated: 2023-05-30
Related Reports
Relates :  
Relates :  
Relates :  
Description
During the review of JDK-8194823, we find the flag `UseGCOverheadLimit` is only used by parallel GC when the `UseAdaptiveSizePolicy` is true.

Actually, after JDK-8212206, the `UseGCOverheadLimit` can work independently of `UseAdaptiveSizePolicy`. It is good to adjust the implementation in parallel GC to let `UseGCOverheadLimit` work without `UseAdaptiveSizePolicy`.

The related code is at `PSScavenge::invoke_no_policy` and `PSParallelCompact::invoke_no_policy`.