8225702: Safepoint counter can't be used for safepoint detection

Reviewed-by: dcubed, dholmes
This commit is contained in:
Robbin Ehn 2019-06-26 18:22:28 +02:00
parent 1a72f29e35
commit 8b067a95ed
6 changed files with 56 additions and 20 deletions

View file

@ -388,7 +388,7 @@ static void post_vm_operation_event(EventExecuteVMOperation* event, VM_Operation
// For concurrent vm operations, the thread id is set to 0 indicating thread is unknown.
// This is because the caller thread could have exited already.
event->set_caller(is_concurrent ? 0 : JFR_THREAD_ID(op->calling_thread()));
event->set_safepointId(evaluate_at_safepoint ? SafepointSynchronize::safepoint_counter() : 0);
event->set_safepointId(evaluate_at_safepoint ? SafepointSynchronize::safepoint_id() : 0);
event->commit();
}