diff src/share/vm/runtime/vmThread.hpp @ 1119:547f81740344

6361589: Print out stack trace for target thread of GC crash Summary: If GC crashed with java thread involved, print out the java stack trace in error report Reviewed-by: never, ysr, coleenp, dholmes
author minqi
date Fri, 11 Dec 2009 11:09:49 -0800
parents 148e5441d916
children c18cbe5936b8
line wrap: on
line diff
--- a/src/share/vm/runtime/vmThread.hpp	Wed Dec 02 20:32:27 2009 -0500
+++ b/src/share/vm/runtime/vmThread.hpp	Fri Dec 11 11:09:49 2009 -0800
@@ -83,7 +83,7 @@
 // like scavenge, garbage_collect etc.
 //
 
-class VMThread: public Thread {
+class VMThread: public NamedThread {
  private:
   static ThreadPriority _current_priority;
 
@@ -101,8 +101,6 @@
   bool is_VM_thread() const                      { return true; }
   bool is_GC_thread() const                      { return true; }
 
-  char* name() const { return (char*)"VM Thread"; }
-
   // The ever running loop for the VMThread
   void loop();