Skip to content
6 changes: 3 additions & 3 deletions src/hotspot/share/code/nmethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1936,9 +1936,9 @@ void nmethod::inc_decompile_count() {
if (!is_compiled_by_c2() && !is_compiled_by_jvmci()) return;
// Could be gated by ProfileTraps, but do not bother...
#if INCLUDE_JVMCI
// Deoptimizations from non-default (non-CompileBroker) compilations should not
// affect the Java method's profile, as they could block it from being compiled
// at the highest tier.
// Deoptimization count is used by the CompileBroker to reason about compilations
// it requests so do not pollute the count for deoptimizations in non-default (i.e.
// non-CompilerBroker) compilations.
if (is_jvmci_hosted()) {
return;
}
Expand Down
6 changes: 3 additions & 3 deletions src/hotspot/share/runtime/deoptimization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2364,9 +2364,9 @@ JRT_ENTRY(void, Deoptimization::uncommon_trap_inner(JavaThread* current, jint tr
}

#if INCLUDE_JVMCI
// Deoptimizations from non-default (non-CompileBroker) compilations should not
// affect the Java method's profile, as they could block it from being compiled
// at the highest tier.
// Deoptimization count is used by the CompileBroker to reason about compilations
// it requests so do not pollute the count for deoptimizations in non-default (i.e.
// non-CompilerBroker) compilations.
if (nm->is_jvmci_hosted()) {
update_trap_state = false;
}
Expand Down