mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8076988: reevaluate trivial method policy
Removed some checks to qualify as trivial Reviewed-by: shade, thartmann, dlong
This commit is contained in:
parent
bd8f4a115c
commit
c1b7e20f5d
1 changed files with 0 additions and 16 deletions
|
@ -87,22 +87,6 @@ bool TieredThresholdPolicy::is_trivial(Method* method) {
|
||||||
method->is_constant_getter()) {
|
method->is_constant_getter()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#if INCLUDE_JVMCI
|
|
||||||
if (UseJVMCICompiler) {
|
|
||||||
AbstractCompiler* comp = CompileBroker::compiler(CompLevel_full_optimization);
|
|
||||||
if (TieredCompilation && comp != NULL && comp->is_trivial(method)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
if (method->has_loops() || method->code_size() >= 15) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
MethodData* mdo = method->method_data();
|
|
||||||
if (mdo != NULL && !mdo->would_profile() &&
|
|
||||||
(method->code_size() < 5 || (mdo->num_blocks() < 4))) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue