RFR: 8359270: C2: alignment check should consider base offset when emitting arraycopy runtime call

Fei Yang fyang at openjdk.org
Fri Jun 13 03:12:28 UTC 2025


On Thu, 12 Jun 2025 06:31:52 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

> Would it be possible to add an IR Framework test for this, checking that the right stub is selected?

Hi Tobias,
Thanks for taking a look!
Here in this case, `StubRoutines::select_arraycopy_function` returns an entry address of the runtime call. And this address is feeded to `GraphKit::make_runtime_call` or `IdealKit::make_leaf_call_no_fp` to make a runtime call node. So with this change the only difference lies in the target address of the runtime call node. I am not sure, but I guess that it is not supported by the IR framework to detect such a difference for now? Please let me know if I missed anything.

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

PR Comment: https://git.openjdk.org/jdk/pull/25765#issuecomment-2968856485


More information about the hotspot-compiler-dev mailing list