src/share/vm/runtime/vmThread.hpp

changeset 1554
547f81740344
parent 1424
148e5441d916
child 1907
c18cbe5936b8
equal deleted inserted replaced
1553:3115100553b5 1554: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

mercurial