Integrated: 8261397: Try Catch Method Failing to Work When Dividing An Integer By 0

Gerard Ziemski gziemski at openjdk.java.net
Tue Feb 23 16:41:41 UTC 2021


On Wed, 17 Feb 2021 19:06:45 GMT, Gerard Ziemski <gziemski at openjdk.org> wrote:

> On Mac ARM hardware running x86 JDK under Rosetta emulation, a div by 0 instruction causes the VM to crash.
> 
> The proposed fix (a workaround) for hotspot is to add **FPE_FLTINV** to the signal handler.
> 
> The actual fix needs to be done in macOS by Apple as the expected signal type here is **FPE_FLTDIV**
> This issue has been filed with Apple and they are tracking it.

This pull request has now been integrated.

Changeset: 0257caad
Author:    Gerard Ziemski <gziemski at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/0257caad
Stats:     30 lines in 3 files changed: 29 ins; 0 del; 1 mod

8261397: Try Catch Method Failing to Work When Dividing An Integer By 0

Reviewed-by: stuefe, prr, dcubed, dholmes

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

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


More information about the hotspot-runtime-dev mailing list