[lworld] RFR: 8326048: [lworld] LibraryCallKit::arraycopy_restore_alloc_state needs to handle _newNullRestrictedArray intrinsic

Tobias Hartmann thartmann at openjdk.org
Fri Feb 16 14:07:17 UTC 2024


Follow-up from [JDK-8325106](https://bugs.openjdk.org/browse/JDK-8325106): We hit an assert because we create a wrong JVMState in `LibraryCallKit::arraycopy_restore_alloc_state` for re-executing the `newNullRestrictedArray` intrinsic because the code does not account for the class argument on stack in addition to the size.

I also fixed an independent issue with handling circularity.

Best regards,
Tobias

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

Commit messages:
 - 8326048: [lworld] LibraryCallKit::arraycopy_restore_alloc_state needs to handle _newNullRestrictedArray intrinsic

Changes: https://git.openjdk.org/valhalla/pull/1009/files
 Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1009&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8326048
  Stats: 84 lines in 11 files changed: 49 ins; 17 del; 18 mod
  Patch: https://git.openjdk.org/valhalla/pull/1009.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1009/head:pull/1009

PR: https://git.openjdk.org/valhalla/pull/1009



More information about the valhalla-dev mailing list