RFR: 8332894: ubsan: vmError.cpp:2090:26: runtime error: division by zero

Kim Barrett kbarrett at openjdk.org
Mon May 27 19:45:05 UTC 2024


On Sun, 26 May 2024 06:08:25 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> When this was written, the point was to raise a "real" SIGFPE. That matters because the behavior is subtly different from a real signal compared to one faked with raise (asynchronous vs synchronous).
> 
> Among other things, this SIGFPE is used for regression testing https://bugs.openjdk.org/browse/JDK-8065895.
[...]

Thanks for the background info.  In light of that, I think the approach of using an attribute to suppress the
ubsan failure is good, and agree there needs to be some commentary added to explain what's going on.

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

PR Comment: https://git.openjdk.org/jdk/pull/19394#issuecomment-2133979645


More information about the hotspot-dev mailing list