mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-12 19:35:24 +00:00
8324974: JFR: EventCompilerPhase should be created as UNTIMED
Reviewed-by: egahlin
This commit is contained in:
parent
70e7cdcb9e
commit
6b09a79d64
@ -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);
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user