Skip to content

Commit 6b09a79

Browse files
committed
8324974: JFR: EventCompilerPhase should be created as UNTIMED
Reviewed-by: egahlin
1 parent 70e7cdc commit 6b09a79

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/hotspot/share/jvmci/jvmciCompilerToVM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3074,7 +3074,7 @@ C2V_VMENTRY_0(jint, registerCompilerPhase, (JNIEnv* env, jobject, jstring jphase
30743074
C2V_END
30753075

30763076
C2V_VMENTRY(void, notifyCompilerPhaseEvent, (JNIEnv* env, jobject, jlong startTime, jint phase, jint compileId, jint level))
3077-
EventCompilerPhase event;
3077+
EventCompilerPhase event(UNTIMED);
30783078
if (event.should_commit()) {
30793079
CompilerEvent::PhaseEvent::post(event, startTime, phase, compileId, level);
30803080
}

src/hotspot/share/opto/compile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5140,7 +5140,7 @@ void Compile::sort_macro_nodes() {
51405140

51415141
void Compile::print_method(CompilerPhaseType cpt, int level, Node* n) {
51425142
if (failing()) { return; }
5143-
EventCompilerPhase event;
5143+
EventCompilerPhase event(UNTIMED);
51445144
if (event.should_commit()) {
51455145
CompilerEvent::PhaseEvent::post(event, C->_latest_stage_start_counter, cpt, C->_compile_id, level);
51465146
}
@@ -5179,7 +5179,7 @@ void Compile::begin_method() {
51795179

51805180
// Only used from CompileWrapper
51815181
void Compile::end_method() {
5182-
EventCompilerPhase event;
5182+
EventCompilerPhase event(UNTIMED);
51835183
if (event.should_commit()) {
51845184
CompilerEvent::PhaseEvent::post(event, C->_latest_stage_start_counter, PHASE_END, C->_compile_id, 1);
51855185
}

0 commit comments

Comments
 (0)