changeset 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 ffb014884c12
children c53c0c153d73
files src/share/vm/graal/graalRuntime.cpp
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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);
 }