[lworld] RFR: 8262231: [lworld] C2 compilation fails with assert "user must call transfer_exceptions_into_jvms"

Tobias Hartmann thartmann at openjdk.java.net
Tue Feb 23 18:02:29 UTC 2021

On Tue, 23 Feb 2021 17:11:05 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

> When running with `-XX:PerMethodSpecTrapLimit=0 -XX:PerMethodTrapLimit=0`, we hit an assert because the unsafe access intrinsic adds an exception to the `GraphKit` state but then bails out and therefore does not transfer that exception into the `JVMState`. In general, we should only modify the graph once we are sure we won't bail out from intrinsification. I've added an assert that catches this even without any VM flags and fixed all affected intrinsics.
> Best regards,
> Tobias

I've removed the assert because it triggers issues in mainline code. Will add the assert back into mainline after fixing issues there.


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

More information about the valhalla-dev mailing list