Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
1118:3115100553b5 | 1119:547f81740344 |
---|---|
81 // A single VMThread (the primordial thread) spawns all other threads | 81 // A single VMThread (the primordial thread) spawns all other threads |
82 // and is itself used by other threads to offload heavy vm operations | 82 // and is itself used by other threads to offload heavy vm operations |
83 // like scavenge, garbage_collect etc. | 83 // like scavenge, garbage_collect etc. |
84 // | 84 // |
85 | 85 |
86 class VMThread: public Thread { | 86 class VMThread: public NamedThread { |
87 private: | 87 private: |
88 static ThreadPriority _current_priority; | 88 static ThreadPriority _current_priority; |
89 | 89 |
90 static bool _should_terminate; | 90 static bool _should_terminate; |
91 static bool _terminated; | 91 static bool _terminated; |
98 VMThread(); | 98 VMThread(); |
99 | 99 |
100 // Tester | 100 // Tester |
101 bool is_VM_thread() const { return true; } | 101 bool is_VM_thread() const { return true; } |
102 bool is_GC_thread() const { return true; } | 102 bool is_GC_thread() const { return true; } |
103 | |
104 char* name() const { return (char*)"VM Thread"; } | |
105 | 103 |
106 // The ever running loop for the VMThread | 104 // The ever running loop for the VMThread |
107 void loop(); | 105 void loop(); |
108 | 106 |
109 // Called to stop the VM thread | 107 // Called to stop the VM thread |