When running with -XX:+RestoreMXCSROnJNICalls on Linux/amd64 I get a crash:
jdk1.7.0_40-b33/bin/java -XX:+RestoreMXCSROnJNICalls Foo
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGFPE (0x8) at pc=0x00007fa3879ec3be, pid=18299, tid=140340350891776
#
# JRE version: (7.0_40-b33) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.0-b52 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x80a3be] os::elapsedTime()+0x2e
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid18299.log
This appears to be new in 7u40 - I do not see the crash with 7u25.
ILW=HLL=P4