[jdk18] RFR: 8275638: GraphKit::combine_exception_states fails with "matching stack sizes" assert

Roland Westrelin roland at openjdk.java.net
Mon Jan 3 08:32:29 UTC 2022


On Thu, 23 Dec 2021 18:30:54 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:

> It seems the root cause of the bug comes from the fact that the same JVM state is used by both `GraphKit::uncommon_trap()` and `GraphKit::builtin_throw()` while `GraphKit::null_check_receiver_before_call()` deliberately adjusts the state to please the former case. If the original state (after the call) is used for `GraphKit::builtin_throw()`, it should fix the bug as well, shouldn't it?

Wouldn't that only work if there's no uncommon trap in GraphKit::builtin_throw()?

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

PR: https://git.openjdk.java.net/jdk18/pull/29


More information about the hotspot-compiler-dev mailing list