mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8139300
: Internal Error (vm/utilities/debug.cpp:399), # Error: ShouldNotReachHere()
Reviewed-by: simonis, dcubed
This commit is contained in:
parent
98231a9c42
commit
3904de571b
2 changed files with 3 additions and 2 deletions
|
@ -331,7 +331,9 @@ static void crash_with_sigfpe() {
|
||||||
volatile int x = 0;
|
volatile int x = 0;
|
||||||
volatile int y = 1/x;
|
volatile int y = 1/x;
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
raise(SIGFPE);
|
// OSX implements raise(sig) incorrectly so we need to
|
||||||
|
// explicitly target the current thread
|
||||||
|
pthread_kill(pthread_self(), SIGFPE);
|
||||||
#endif
|
#endif
|
||||||
} // end: crash_with_sigfpe
|
} // end: crash_with_sigfpe
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
* @summary Synchronous signals during error reporting may terminate or hang VM process
|
* @summary Synchronous signals during error reporting may terminate or hang VM process
|
||||||
* @library /testlibrary
|
* @library /testlibrary
|
||||||
* @author Thomas Stuefe (SAP)
|
* @author Thomas Stuefe (SAP)
|
||||||
* @requires os.family != "mac"
|
|
||||||
* @modules java.base/sun.misc
|
* @modules java.base/sun.misc
|
||||||
* java.management
|
* java.management
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue