RFR: 8330145: Serial: Refactor SerialHeap::scan_evacuated_objs
Albert Mingkun Yang
ayang at openjdk.org
Fri Apr 12 13:53:41 UTC 2024
On Fri, 12 Apr 2024 13:26:44 GMT, Guoxiong Li <gli at openjdk.org> wrote:
>> Simple refactoring to extract oop-scanning logic from generation.
>
> src/hotspot/share/gc/serial/serialHeap.cpp line 797:
>
>> 795: break;
>> 796: }
>> 797: } while (true);
>
> Why not keeping the previous ` while (!no_allocs_since_save_marks())`?
The old-gen-iteration should have ensured no alloc in old-gen, so only young-gen requires rechecking.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18750#discussion_r1562585562
More information about the hotspot-gc-dev
mailing list