RFR: 8373116: Genshen: arraycopy_work should be always done for arrays in old gen during young concurrent marking [v7]

Xiaolong Peng xpeng at openjdk.org
Mon Dec 8 21:46:57 UTC 2025


On Mon, 8 Dec 2025 21:09:31 GMT, Xiaolong Peng <xpeng at openjdk.org> wrote:

>> Wondering if the test for is_generational() could be captured in a template parameter. Each invocation that I find with grep already knows whether is_generational.
>
> Thanks to make it so clear, I did similar evaluation and knew we will call arraycopy_work when (B && C) is true, but it shouldn't cause crash from OldGC, we will be more conservative in such case resulting in maybe more live objects.
> 
> I'll try to make the tests here more accurate in the PR.

arraycopy_work will be called when (B && C) is true if only A is also true, it is expected and what we wanted.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28669#discussion_r2600242973


More information about the shenandoah-dev mailing list