src/hotspot/share/runtime/vmThread.cpp
changeset 55514 03468b206457
parent 55128 35192d9c2b76
child 57758 91a758925be7
equal deleted inserted replaced
55505:0bf9477626ef 55514:03468b206457
   386   event->set_blocking(!is_concurrent);
   386   event->set_blocking(!is_concurrent);
   387   // Only write caller thread information for non-concurrent vm operations.
   387   // Only write caller thread information for non-concurrent vm operations.
   388   // For concurrent vm operations, the thread id is set to 0 indicating thread is unknown.
   388   // For concurrent vm operations, the thread id is set to 0 indicating thread is unknown.
   389   // This is because the caller thread could have exited already.
   389   // This is because the caller thread could have exited already.
   390   event->set_caller(is_concurrent ? 0 : JFR_THREAD_ID(op->calling_thread()));
   390   event->set_caller(is_concurrent ? 0 : JFR_THREAD_ID(op->calling_thread()));
   391   event->set_safepointId(evaluate_at_safepoint ? SafepointSynchronize::safepoint_counter() : 0);
   391   event->set_safepointId(evaluate_at_safepoint ? SafepointSynchronize::safepoint_id() : 0);
   392   event->commit();
   392   event->commit();
   393 }
   393 }
   394 
   394 
   395 void VMThread::evaluate_operation(VM_Operation* op) {
   395 void VMThread::evaluate_operation(VM_Operation* op) {
   396   ResourceMark rm;
   396   ResourceMark rm;