[lworld] RFR: 8275797: [lworld] Scalar replacement fails with ShouldNotReachHere() due to unexpected load type

Tobias Hartmann thartmann at openjdk.java.net
Mon Oct 25 10:41:39 UTC 2021


When folding a field load from a scalar replaced, flat inline type array through an array copy, `T_ARRAY` is used instead of `T_OBJECT`. The fix is to simply convert the basic type of the field via `type2field` like we do in `InlineTypeBaseNode::load` and at other places.

Thanks,
Tobias

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

Commit messages:
 - 8275797: [lworld] Scalar replacement fails with ShouldNotReachHere() due to unexpected load type

Changes: https://git.openjdk.java.net/valhalla/pull/569/files
 Webrev: https://webrevs.openjdk.java.net/?repo=valhalla&pr=569&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8275797
  Stats: 19 lines in 2 files changed: 18 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/valhalla/pull/569.diff
  Fetch: git fetch https://git.openjdk.java.net/valhalla pull/569/head:pull/569

PR: https://git.openjdk.java.net/valhalla/pull/569



More information about the valhalla-dev mailing list