diff src/share/vm/graal/graalRuntime.cpp @ 16679:58622d6b1097

give all aborting threads a chance to print Graal related stack traces
author Doug Simon <doug.simon@oracle.com>
date Mon, 04 Aug 2014 14:26:29 +0200
parents d3fec84757ed
children 4d0d1dc5db00
line wrap: on
line diff
--- a/src/share/vm/graal/graalRuntime.cpp	Mon Aug 04 11:38:25 2014 +0200
+++ b/src/share/vm/graal/graalRuntime.cpp	Mon Aug 04 14:26:29 2014 +0200
@@ -990,6 +990,12 @@
   CLEAR_PENDING_EXCEPTION;
   tty->print_cr(message);
   call_printStackTrace(exception, THREAD);
+
+  // Give other aborting threads to also print their stack traces.
+  // This can be very useful when debugging class initialization
+  // failures.
+  os::sleep(THREAD, 200, false);
+
   vm_abort(dump_core);
 }