8139300: Internal Error (vm/utilities/debug.cpp:399), # Error: ShouldNotReachHere()
authordholmes
Mon, 16 Nov 2015 18:50:55 -0500
changeset 34144 b181699c6616
parent 34143 5d2afe31c768
child 34145 f8097485b483
child 34146 42523f0da397
8139300: Internal Error (vm/utilities/debug.cpp:399), # Error: ShouldNotReachHere() Reviewed-by: simonis, dcubed
hotspot/src/share/vm/utilities/debug.cpp
hotspot/test/runtime/ErrorHandling/SecondaryErrorTest.java
--- a/hotspot/src/share/vm/utilities/debug.cpp	Mon Nov 16 23:12:36 2015 +0100
+++ b/hotspot/src/share/vm/utilities/debug.cpp	Mon Nov 16 18:50:55 2015 -0500
@@ -331,7 +331,9 @@
   volatile int x = 0;
   volatile int y = 1/x;
 #ifndef _WIN32
-  raise(SIGFPE);
+  // OSX implements raise(sig) incorrectly so we need to
+  // explicitly target the current thread
+  pthread_kill(pthread_self(), SIGFPE);
 #endif
 } // end: crash_with_sigfpe
 
--- a/hotspot/test/runtime/ErrorHandling/SecondaryErrorTest.java	Mon Nov 16 23:12:36 2015 +0100
+++ b/hotspot/test/runtime/ErrorHandling/SecondaryErrorTest.java	Mon Nov 16 18:50:55 2015 -0500
@@ -28,7 +28,6 @@
  * @summary Synchronous signals during error reporting may terminate or hang VM process
  * @library /testlibrary
  * @author Thomas Stuefe (SAP)
- * @requires os.family != "mac"
  * @modules java.base/sun.misc
  *          java.management
  */