RFR: 8286182: C2: crash with SIGFPE when executing compiled code

Tobias Hartmann thartmann at openjdk.java.net
Mon May 16 13:04:44 UTC 2022


On Mon, 16 May 2022 12:36:43 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

> The bug is not assigned to me, but I have seen that the C2 code which checks for div by 0 is not aware of the new nodes from [JDK-8284742](https://bugs.openjdk.java.net/browse/JDK-8284742).
> This fixes the VM to pass the reproducer. I'm not sure if more opcode checks are required to get added.

So the fix for [JDK-8257822](https://bugs.openjdk.java.net/browse/JDK-8257822) misses the new nodes added by [JDK-8284742](https://bugs.openjdk.java.net/browse/JDK-8284742). 

I wonder if this code needs to be adjusted as well:
https://github.com/openjdk/jdk/blob/fa1ca98fff66fb91cfd5b00404645e0574d03101/src/hotspot/share/opto/loopnode.cpp#L5780-L5785

@chhagedorn should have a look as well.

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

PR: https://git.openjdk.java.net/jdk/pull/8726


More information about the hotspot-compiler-dev mailing list