RFR: 8309403: Serial: Remove the useless adaptive size policy in GenCollectedHeap
Albert Mingkun Yang
ayang at openjdk.org
Wed Jun 7 13:44:06 UTC 2023
On Wed, 7 Jun 2023 11:39:55 GMT, Guoxiong Li <gli at openjdk.org> wrote:
> Don't remove the class SoftRefGenPolicy because it will be used by Parallel GC in the future.
I am not sure that using `SoftRefGenPolicy` is the cleanest way to solve the issue in Parallel. Can we check gc-overhead (and other relevant metrics) at gc-pause-start to decide soft-ref-policy, instead of relying on the global bool? (IOW, can GC make the more active decidion, in contrast to letting others tell GC what to do regarding to soft-refs?)
The approach in `should_clear_soft_references` of `zDriver` seems less intrusive to the global env.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14296#discussion_r1221624327
More information about the hotspot-gc-dev
mailing list