From 08c42b1b49cf39544b3928dee8f534ead33f4a5e Mon Sep 17 00:00:00 2001 From: coleenp Date: Tue, 23 Dec 2008 06:16:53 -0800 Subject: [PATCH] 4997835: RFE: crash dump will only be created when running w/ -XX:+ShowMessageBoxOnError Summary: Using UseOSErrorReporting will provide both an hs_err file and a crash dump or debug launch and works better. Reviewed-by: xlu, acorn, poonam --- src/share/vm/utilities/vmError.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/share/vm/utilities/vmError.cpp b/src/share/vm/utilities/vmError.cpp index d2a0161a7..a4d0cb0ba 100644 --- a/src/share/vm/utilities/vmError.cpp +++ b/src/share/vm/utilities/vmError.cpp @@ -674,6 +674,11 @@ void VMError::report_and_die() { reset_signal_handlers(); } else { + // If UseOsErrorReporting we call this for each level of the call stack + // while searching for the exception handler. Only the first level needs + // to be reported. + if (UseOSErrorReporting && log_done) return; + // This is not the first error, see if it happened in a different thread // or in the same thread during error reporting. if (first_error_tid != mytid) { -- GitLab