equal
deleted
inserted
replaced
117 |
117 |
118 static bool _should_terminate; |
118 static bool _should_terminate; |
119 static bool _terminated; |
119 static bool _terminated; |
120 static Monitor * _terminate_lock; |
120 static Monitor * _terminate_lock; |
121 static PerfCounter* _perf_accumulated_vm_operation_time; |
121 static PerfCounter* _perf_accumulated_vm_operation_time; |
122 |
122 static uint64_t _coalesced_count; |
123 static const char* _no_op_reason; |
|
124 |
123 |
125 static VMOperationTimeoutTask* _timeout_task; |
124 static VMOperationTimeoutTask* _timeout_task; |
126 |
125 |
127 static bool no_op_safepoint_needed(bool check_time); |
126 static VM_Operation* no_op_safepoint(bool check_time); |
128 |
127 |
129 void evaluate_operation(VM_Operation* op); |
128 void evaluate_operation(VM_Operation* op); |
130 |
129 |
131 public: |
130 public: |
132 // Constructor |
131 // Constructor |
153 // Execution of vm operation |
152 // Execution of vm operation |
154 static void execute(VM_Operation* op); |
153 static void execute(VM_Operation* op); |
155 |
154 |
156 // Returns the current vm operation if any. |
155 // Returns the current vm operation if any. |
157 static VM_Operation* vm_operation() { return _cur_vm_operation; } |
156 static VM_Operation* vm_operation() { return _cur_vm_operation; } |
158 |
157 static VM_Operation::VMOp_Type vm_op_type() { return _cur_vm_operation->type(); } |
159 // Returns the current vm operation name or set reason |
158 static uint64_t get_coalesced_count() { return _coalesced_count; } |
160 static const char* vm_safepoint_description() { return _cur_vm_operation != NULL ? _cur_vm_operation->name() : _no_op_reason; }; |
|
161 |
159 |
162 // Returns the single instance of VMThread. |
160 // Returns the single instance of VMThread. |
163 static VMThread* vm_thread() { return _vm_thread; } |
161 static VMThread* vm_thread() { return _vm_thread; } |
164 |
162 |
165 // GC support |
163 // GC support |