RFR: 8330145: Serial: Refactor SerialHeap::scan_evacuated_objs
Stefan Karlsson
stefank at openjdk.org
Thu Apr 18 11:29:08 UTC 2024
On Thu, 18 Apr 2024 09:23:44 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:
>> One can probably use `saved_mark_at_top()` in the while-condition. Why do you think using `break` is ugly here? I feel it's kind of nice that all accesses around saved-mark-word & top are right within the while-body.
>
> Maybe the break could be removed by changing the code this?:
>
> while (young_gen()->saved_mark_word() < young_gen()->top());
or introduce a `allocs_since_save_marks()`?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18750#discussion_r1570351460
More information about the hotspot-gc-dev
mailing list