Skip to content

Commit c8badf5

Browse files
last tweaks and fixes
1 parent b849b3c commit c8badf5

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

src/hotspot/os/windows/globals_windows.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
range, \
3737
constraint) \
3838
\
39-
product(bool, UseOSErrorReporting, false \
39+
product(bool, UseOSErrorReporting, false, \
4040
"Let VM fatal error propagate to the OS (ie. WER on Windows)")
4141

4242
// end of RUNTIME_OS_FLAGS

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/utilities/vmError.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,7 @@ void VMError::report_and_die(int id, const char* message, const char* detail_fmt
14341434
reset_signal_handlers();
14351435
} else {
14361436
#if defined(_WINDOWS)
1437-
// If UseOsErrorReporting we call this for each level of the call stack
1437+
// If UseOSErrorReporting we call this for each level of the call stack
14381438
// while searching for the exception handler. Only the first level needs
14391439
// to be reported.
14401440
if (UseOSErrorReporting && log_done) return;
@@ -1628,11 +1628,7 @@ void VMError::report_and_die(int id, const char* message, const char* detail_fmt
16281628
OnError = NULL;
16291629
}
16301630

1631-
#if defined(_WINDOWS)
1632-
if (!UseOSErrorReporting) {
1633-
#else
1634-
if (true) {
1635-
#endif
1631+
if (WINDOWS_ONLY(!UseOsErrorReporting) NOT_WINDOWS(true)) {
16361632
// os::abort() will call abort hooks, try it first.
16371633
static bool skip_os_abort = false;
16381634
if (!skip_os_abort) {

0 commit comments

Comments
 (0)