505 // the queue until there are none left |
505 // the queue until there are none left |
506 do { |
506 do { |
507 _cur_vm_operation = safepoint_ops; |
507 _cur_vm_operation = safepoint_ops; |
508 if (_cur_vm_operation != NULL) { |
508 if (_cur_vm_operation != NULL) { |
509 do { |
509 do { |
|
510 EventMark em("Executing coalesced safepoint VM operation: %s", _cur_vm_operation->name()); |
510 // evaluate_operation deletes the op object so we have |
511 // evaluate_operation deletes the op object so we have |
511 // to grab the next op now |
512 // to grab the next op now |
512 VM_Operation* next = _cur_vm_operation->next(); |
513 VM_Operation* next = _cur_vm_operation->next(); |
513 _vm_queue->set_drain_list(next); |
514 _vm_queue->set_drain_list(next); |
514 evaluate_operation(_cur_vm_operation); |
515 evaluate_operation(_cur_vm_operation); |