equal
deleted
inserted
replaced
97 static bool _should_terminate; |
97 static bool _should_terminate; |
98 static bool _terminated; |
98 static bool _terminated; |
99 static Monitor * _terminate_lock; |
99 static Monitor * _terminate_lock; |
100 static PerfCounter* _perf_accumulated_vm_operation_time; |
100 static PerfCounter* _perf_accumulated_vm_operation_time; |
101 |
101 |
|
102 static const char* _no_op_reason; |
|
103 |
|
104 static bool no_op_safepoint_needed(bool check_time); |
|
105 |
102 void evaluate_operation(VM_Operation* op); |
106 void evaluate_operation(VM_Operation* op); |
|
107 |
103 public: |
108 public: |
104 // Constructor |
109 // Constructor |
105 VMThread(); |
110 VMThread(); |
106 |
111 |
107 // No destruction allowed |
112 // No destruction allowed |
124 |
129 |
125 // Execution of vm operation |
130 // Execution of vm operation |
126 static void execute(VM_Operation* op); |
131 static void execute(VM_Operation* op); |
127 |
132 |
128 // Returns the current vm operation if any. |
133 // Returns the current vm operation if any. |
129 static VM_Operation* vm_operation() { return _cur_vm_operation; } |
134 static VM_Operation* vm_operation() { return _cur_vm_operation; } |
|
135 |
|
136 // Returns the current vm operation name or set reason |
|
137 static const char* vm_safepoint_description() { return _cur_vm_operation != NULL ? _cur_vm_operation->name() : _no_op_reason; }; |
130 |
138 |
131 // Returns the single instance of VMThread. |
139 // Returns the single instance of VMThread. |
132 static VMThread* vm_thread() { return _vm_thread; } |
140 static VMThread* vm_thread() { return _vm_thread; } |
133 |
141 |
134 // GC support |
142 // GC support |