Skip to content

Commit 74d6c9a

Browse files
Only use UseOsErrorReporting on Windows
1 parent cb403c9 commit 74d6c9a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/hotspot/share/utilities/vmError.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,10 +1433,12 @@ void VMError::report_and_die(int id, const char* message, const char* detail_fmt
14331433
// are handled properly.
14341434
reset_signal_handlers();
14351435
} else {
1436+
#if defined(_WINDOWS)
14361437
// If UseOsErrorReporting we call this for each level of the call stack
14371438
// while searching for the exception handler. Only the first level needs
14381439
// to be reported.
14391440
if (UseOSErrorReporting && log_done) return;
1441+
#endif
14401442

14411443
// This is not the first error, see if it happened in a different thread
14421444
// or in the same thread during error reporting.
@@ -1626,7 +1628,11 @@ void VMError::report_and_die(int id, const char* message, const char* detail_fmt
16261628
OnError = NULL;
16271629
}
16281630

1631+
#if defined(_WINDOWS)
16291632
if (!UseOSErrorReporting) {
1633+
#else
1634+
if (true) {
1635+
#endif
16301636
// os::abort() will call abort hooks, try it first.
16311637
static bool skip_os_abort = false;
16321638
if (!skip_os_abort) {

0 commit comments

Comments
 (0)