From 6b09a79d64bcb1aa5382e60d1d690d4e4a9dc337 Mon Sep 17 00:00:00 2001 From: Denghui Dong Date: Thu, 1 Feb 2024 15:52:25 +0000 Subject: [PATCH] 8324974: JFR: EventCompilerPhase should be created as UNTIMED Reviewed-by: egahlin --- src/hotspot/share/jvmci/jvmciCompilerToVM.cpp | 2 +- src/hotspot/share/opto/compile.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp b/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp index 069aa8394e9..74b17e07cae 100644 --- a/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp +++ b/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp @@ -3074,7 +3074,7 @@ C2V_VMENTRY_0(jint, registerCompilerPhase, (JNIEnv* env, jobject, jstring jphase C2V_END C2V_VMENTRY(void, notifyCompilerPhaseEvent, (JNIEnv* env, jobject, jlong startTime, jint phase, jint compileId, jint level)) - EventCompilerPhase event; + EventCompilerPhase event(UNTIMED); if (event.should_commit()) { CompilerEvent::PhaseEvent::post(event, startTime, phase, compileId, level); } diff --git a/src/hotspot/share/opto/compile.cpp b/src/hotspot/share/opto/compile.cpp index acce455b726..d67df3174b1 100644 --- a/src/hotspot/share/opto/compile.cpp +++ b/src/hotspot/share/opto/compile.cpp @@ -5140,7 +5140,7 @@ void Compile::sort_macro_nodes() { void Compile::print_method(CompilerPhaseType cpt, int level, Node* n) { if (failing()) { return; } - EventCompilerPhase event; + EventCompilerPhase event(UNTIMED); if (event.should_commit()) { CompilerEvent::PhaseEvent::post(event, C->_latest_stage_start_counter, cpt, C->_compile_id, level); } @@ -5179,7 +5179,7 @@ void Compile::begin_method() { // Only used from CompileWrapper void Compile::end_method() { - EventCompilerPhase event; + EventCompilerPhase event(UNTIMED); if (event.should_commit()) { CompilerEvent::PhaseEvent::post(event, C->_latest_stage_start_counter, PHASE_END, C->_compile_id, 1); }