Skip to content

Commit ba2ff3a

Browse files
author
Gerard Ziemski
committed
8250637: UseOSErrorReporting times out (on Mac and Linux)
Reviewed-by: stuefe, dholmes
1 parent 31918c5 commit ba2ff3a

File tree

7 files changed

+15
-18
lines changed

7 files changed

+15
-18
lines changed

src/hotspot/os/aix/globals_aix.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
// Use Use64KPages or Use16MPages instead.
8989
define_pd_global(bool, UseLargePages, false);
9090
define_pd_global(bool, UseLargePagesIndividualAllocation, false);
91-
define_pd_global(bool, UseOSErrorReporting, false);
9291
define_pd_global(bool, UseThreadPriorities, true) ;
9392

9493
#endif // OS_AIX_GLOBALS_AIX_HPP

src/hotspot/os/bsd/globals_bsd.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
//
4545
define_pd_global(bool, UseLargePages, false);
4646
define_pd_global(bool, UseLargePagesIndividualAllocation, false);
47-
define_pd_global(bool, UseOSErrorReporting, false);
4847
define_pd_global(bool, UseThreadPriorities, true) ;
4948

5049
#endif // OS_BSD_GLOBALS_BSD_HPP

src/hotspot/os/linux/globals_linux.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
//
9393
define_pd_global(bool, UseLargePages, false);
9494
define_pd_global(bool, UseLargePagesIndividualAllocation, false);
95-
define_pd_global(bool, UseOSErrorReporting, false);
9695
define_pd_global(bool, UseThreadPriorities, true) ;
9796

9897
#endif // OS_LINUX_GLOBALS_LINUX_HPP

src/hotspot/os/windows/globals_windows.hpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,25 @@
2828
//
2929
// Declare Windows specific flags. They are not available on other platforms.
3030
//
31-
#define RUNTIME_OS_FLAGS(develop, \
32-
develop_pd, \
33-
product, \
34-
product_pd, \
35-
notproduct, \
36-
range, \
37-
constraint)
31+
#define RUNTIME_OS_FLAGS(develop, \
32+
develop_pd, \
33+
product, \
34+
product_pd, \
35+
notproduct, \
36+
range, \
37+
constraint) \
38+
\
39+
product(bool, UseOSErrorReporting, false, \
40+
"Let VM fatal error propagate to the OS (ie. WER on Windows)")
3841

3942
// end of RUNTIME_OS_FLAGS
4043

41-
4244
//
4345
// Defines Windows-specific default values. The flags are available on all
4446
// platforms, but they may have different default values on other platforms.
4547
//
4648
define_pd_global(bool, UseLargePages, false);
4749
define_pd_global(bool, UseLargePagesIndividualAllocation, true);
48-
define_pd_global(bool, UseOSErrorReporting, false); // for now.
4950
define_pd_global(bool, UseThreadPriorities, true) ;
5051

5152
#endif // OS_WINDOWS_GLOBALS_WINDOWS_HPP

src/hotspot/os/windows/os_windows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2354,7 +2354,7 @@ static inline void report_error(Thread* t, DWORD exception_code,
23542354
address addr, void* siginfo, void* context) {
23552355
VMError::report_and_die(t, exception_code, addr, siginfo, context);
23562356

2357-
// If UseOsErrorReporting, this will return here and save the error file
2357+
// If UseOSErrorReporting, this will return here and save the error file
23582358
// somewhere where we can find it in the minidump.
23592359
}
23602360

src/hotspot/share/runtime/globals.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,6 @@ const intx ObjectAlignmentInBytes = 8;
532532
"error log in case of a crash.") \
533533
range(0, (uint64_t)max_jlong/1000) \
534534
\
535-
product_pd(bool, UseOSErrorReporting, \
536-
"Let VM fatal error propagate to the OS (ie. WER on Windows)") \
537-
\
538535
product(bool, SuppressFatalErrorMessage, false, \
539536
"Report NO fatal error message (avoid deadlock)") \
540537
\

src/hotspot/share/utilities/vmError.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,10 +1420,12 @@ void VMError::report_and_die(int id, const char* message, const char* detail_fmt
14201420
// are handled properly.
14211421
reset_signal_handlers();
14221422
} else {
1423-
// If UseOsErrorReporting we call this for each level of the call stack
1423+
#if defined(_WINDOWS)
1424+
// If UseOSErrorReporting we call this for each level of the call stack
14241425
// while searching for the exception handler. Only the first level needs
14251426
// to be reported.
14261427
if (UseOSErrorReporting && log_done) return;
1428+
#endif
14271429

14281430
// This is not the first error, see if it happened in a different thread
14291431
// or in the same thread during error reporting.
@@ -1613,7 +1615,7 @@ void VMError::report_and_die(int id, const char* message, const char* detail_fmt
16131615
OnError = NULL;
16141616
}
16151617

1616-
if (!UseOSErrorReporting) {
1618+
if (WINDOWS_ONLY(!UseOSErrorReporting) NOT_WINDOWS(true)) {
16171619
// os::abort() will call abort hooks, try it first.
16181620
static bool skip_os_abort = false;
16191621
if (!skip_os_abort) {

0 commit comments

Comments
 (0)