RFR: 8368740: Serial: Swap eden and survivor spaces position in young generation [v2]
Francesco Andreuzzi
fandreuzzi at openjdk.org
Fri Sep 26 13:33:30 UTC 2025
On Fri, 26 Sep 2025 09:34:16 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:
>> src/hotspot/share/gc/serial/defNewGeneration.cpp line 426:
>>
>>> 424: return;
>>> 425: }
>>> 426: } else {
>>
>> How about `else if (current_young_gen_size_bytes > desired_young_gen_size_bytes)` here? `VirtualSpace::shrink_by(size_t)` seems to do some work even when `delta_bytes = 0`.
>
> The zero-case is handled a few lines above by `if (current_young_gen_size_bytes == desired_young_gen_size_bytes)`.
Missed that, thanks
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27513#discussion_r2382438178
More information about the hotspot-gc-dev
mailing list