equal
deleted
inserted
replaced
49 #define VM_OP_NAME_INITIALIZE(name) #name, |
49 #define VM_OP_NAME_INITIALIZE(name) #name, |
50 |
50 |
51 const char* VM_Operation::_names[VM_Operation::VMOp_Terminating] = \ |
51 const char* VM_Operation::_names[VM_Operation::VMOp_Terminating] = \ |
52 { VM_OPS_DO(VM_OP_NAME_INITIALIZE) }; |
52 { VM_OPS_DO(VM_OP_NAME_INITIALIZE) }; |
53 |
53 |
54 void VM_Operation::set_calling_thread(Thread* thread, ThreadPriority priority) { |
54 void VM_Operation::set_calling_thread(Thread* thread) { |
55 _calling_thread = thread; |
55 _calling_thread = thread; |
56 assert(MinPriority <= priority && priority <= MaxPriority, "sanity check"); |
56 } |
57 _priority = priority; |
|
58 } |
|
59 |
|
60 |
57 |
61 void VM_Operation::evaluate() { |
58 void VM_Operation::evaluate() { |
62 ResourceMark rm; |
59 ResourceMark rm; |
63 LogTarget(Debug, vmoperation) lt; |
60 LogTarget(Debug, vmoperation) lt; |
64 if (lt.is_enabled()) { |
61 if (lt.is_enabled()) { |
508 void VM_Exit::wait_if_vm_exited() { |
505 void VM_Exit::wait_if_vm_exited() { |
509 if (_vm_exited && |
506 if (_vm_exited && |
510 Thread::current_or_null() != _shutdown_thread) { |
507 Thread::current_or_null() != _shutdown_thread) { |
511 // _vm_exited is set at safepoint, and the Threads_lock is never released |
508 // _vm_exited is set at safepoint, and the Threads_lock is never released |
512 // we will block here until the process dies |
509 // we will block here until the process dies |
513 Threads_lock->lock_without_safepoint_check(); |
510 Threads_lock->lock(); |
514 ShouldNotReachHere(); |
511 ShouldNotReachHere(); |
515 } |
512 } |
516 } |
513 } |
517 |
514 |
518 void VM_PrintCompileQueue::doit() { |
515 void VM_PrintCompileQueue::doit() { |