RFR (S): 8245833: crash_with_sigfpe uses pthread_kill(SIGFPE) on macOS
David Holmes
david.holmes at oracle.com
Fri May 29 00:03:24 UTC 2020
Hi Gerard,
On 29/05/2020 3:34 am, gerard ziemski wrote:
> hi all,
>
> Please review this small and simple fix, that implements
> crash_with_sigfpe() in a way that causes an actual crash on macOS, so it
> doesn't need to fallback that uses pthread_kill()
>
> bug link at https://bugs.openjdk.java.net/browse/JDK-8245833
> webrev at http://cr.openjdk.java.net/~gziemski/8245833_rev1
> passes Mach5 hs_tier1,2,3,4,5
Fix looks fine.
So presumably this old code:
volatile int x = 0;
volatile int y = 1/x;
is actually elided by the compiler when we build for macOS?
Thanks,
David
>
> cheers
More information about the hotspot-runtime-dev
mailing list