hotspot/src/share/vm/utilities/vmError.cpp
changeset 6176 4d9030fe341f
parent 5547 f4b087cbb361
child 6184 a017b5ba6782
--- a/hotspot/src/share/vm/utilities/vmError.cpp	Wed Jul 28 17:57:43 2010 -0400
+++ b/hotspot/src/share/vm/utilities/vmError.cpp	Tue Aug 03 08:13:38 2010 -0400
@@ -687,16 +687,13 @@
 # undef END
 }
 
+VMError* volatile VMError::first_error = NULL;
+volatile jlong VMError::first_error_tid = -1;
 
 void VMError::report_and_die() {
   // Don't allocate large buffer on stack
   static char buffer[O_BUFLEN];
 
-  // First error, and its thread id. We must be able to handle native thread,
-  // so use thread id instead of Thread* to identify thread.
-  static VMError* first_error;
-  static jlong    first_error_tid;
-
   // An error could happen before tty is initialized or after it has been
   // destroyed. Here we use a very simple unbuffered fdStream for printing.
   // Only out.print_raw() and out.print_raw_cr() should be used, as other