Skip to content

Commit

Permalink
8324974: JFR: EventCompilerPhase should be created as UNTIMED
Browse files Browse the repository at this point in the history
Reviewed-by: egahlin
  • Loading branch information
D-D-H committed Feb 1, 2024
1 parent 70e7cdc commit 6b09a79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/share/jvmci/jvmciCompilerToVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/share/opto/compile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down

1 comment on commit 6b09a79

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.