RFR: 8319713: Parallel: Remove PSAdaptiveSizePolicy::should_full_GC

Albert Mingkun Yang ayang at openjdk.org
Mon Nov 13 12:37:59 UTC 2023


On Wed, 8 Nov 2023 13:44:56 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> Simple removing too-conservative full-gc heuristic.

The check in `PSScavenge::should_attempt_scavenge` is constrained by used-in-young to offer a less-conservative heuristic, i.e. #promoted-bytes can't be larger than used-in-young. In terms of avoiding promotion-failure during young-gc, both heuristics are equally effective. Therefore, the end result is that a full-gc starts unnecessarily. (Also attached a small bm to illustrate the problem.)

-------------

PR Comment: https://git.openjdk.org/jdk/pull/16560#issuecomment-1808084970


More information about the hotspot-gc-dev mailing list