RFR: 8366781: Parallel: Include OS free memory in GC selection heuristics [v3]
Albert Mingkun Yang
ayang at openjdk.org
Fri Oct 17 14:30:06 UTC 2025
On Fri, 17 Oct 2025 13:41:13 GMT, Guoxiong Li <gli at openjdk.org> wrote:
>> Albert Mingkun Yang has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains six additional commits since the last revision:
>>
>> - sizet
>> - Merge branch 'master' into pgc-os-free-mem
>> - Merge branch 'master' into pgc-os-free-mem
>> - review
>> - Merge branch 'master' into pgc-os-free-mem
>> - pgc-os-free-mem
>
> src/hotspot/share/gc/parallel/psScavenge.cpp line 525:
>
>> 523: bool PSScavenge::should_attempt_scavenge() {
>> 524: const static bool SHOULD_RUN_YOUNG_GC = true;
>> 525: const static bool SHOULD_RUN_FULL_GC = false;
>
> These two constants `SHOULD_RUN_YOUNG_GC` and `SHOULD_RUN_FULL_GC` do not seem to be `static`.
It probably doesn't make any difference. I can drop `static` if you prefer.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27068#discussion_r2440211140
More information about the hotspot-gc-dev
mailing list