changeset 519:dabd8d202164

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
author coleenp
date Tue, 23 Dec 2008 06:16:53 -0800
parents ca7d48236048
children db4caa99ef11
files src/share/vm/utilities/vmError.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/utilities/vmError.cpp	Sat Dec 20 00:45:18 2008 -0800
+++ b/src/share/vm/utilities/vmError.cpp	Tue Dec 23 06:16:53 2008 -0800
@@ -674,6 +674,11 @@
     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) {