mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
8251462: Simplify compilation policy
Reviewed-by: cjplummer, kvn
This commit is contained in:
parent
71128cf4ce
commit
1519632597
98 changed files with 2343 additions and 3818 deletions
|
@ -2212,7 +2212,7 @@ JRT_ENTRY(void, Deoptimization::uncommon_trap_inner(JavaThread* thread, jint tra
|
|||
// aggressive optimization.
|
||||
bool inc_recompile_count = false;
|
||||
ProfileData* pdata = NULL;
|
||||
if (ProfileTraps && !is_client_compilation_mode_vm() && update_trap_state && trap_mdo != NULL) {
|
||||
if (ProfileTraps && CompilerConfig::is_c2_or_jvmci_compiler_enabled() && update_trap_state && trap_mdo != NULL) {
|
||||
assert(trap_mdo == get_method_data(thread, profiled_method, false), "sanity");
|
||||
uint this_trap_count = 0;
|
||||
bool maybe_prior_trap = false;
|
||||
|
@ -2334,7 +2334,7 @@ JRT_ENTRY(void, Deoptimization::uncommon_trap_inner(JavaThread* thread, jint tra
|
|||
|
||||
// Reprofile
|
||||
if (reprofile) {
|
||||
CompilationPolicy::policy()->reprofile(trap_scope, nm->is_osr_method());
|
||||
CompilationPolicy::reprofile(trap_scope, nm->is_osr_method());
|
||||
}
|
||||
|
||||
// Give up compiling
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue