RFR: 8261397: Try Catch Method Failing to Work When Dividing An Integer By 0 [v5]

Gerard Ziemski gziemski at openjdk.java.net
Mon Feb 22 19:18:01 UTC 2021


> 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.

Gerard Ziemski has updated the pull request incrementally with one additional commit since the last revision:

  only add is_cpu_emulated() to bsd platform, where currently needed

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/2615/files
  - new: https://git.openjdk.java.net/jdk/pull/2615/files/65dd76da..3bfe8ebd

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=2615&range=04
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=2615&range=03-04

  Stats: 4 lines in 2 files changed: 1 ins; 3 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2615.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2615/head:pull/2615

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


More information about the hotspot-runtime-dev mailing list