mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-14 18:03:44 +00:00
8360783: CTW: Skip deoptimization between tiers
Reviewed-by: thartmann, mhaessig, dfenacci
This commit is contained in:
parent
b32ccf2cb2
commit
cd6caedd0a
@ -170,17 +170,22 @@ public class Compiler {
|
||||
|
||||
@Override
|
||||
public final void run() {
|
||||
// Make sure method is not compiled at any level before starting
|
||||
// progressive compilations. No deopt in-between tiers is needed,
|
||||
// as long as we increase the compilation levels one by one.
|
||||
WHITE_BOX.deoptimizeMethod(method);
|
||||
|
||||
int compLevel = Utils.INITIAL_COMP_LEVEL;
|
||||
if (Utils.TIERED_COMPILATION) {
|
||||
for (int i = compLevel; i <= Utils.TIERED_STOP_AT_LEVEL; ++i) {
|
||||
WHITE_BOX.deoptimizeMethod(method);
|
||||
compileAtLevel(i);
|
||||
}
|
||||
} else {
|
||||
compileAtLevel(compLevel);
|
||||
}
|
||||
|
||||
// Make the method eligible for sweeping sooner
|
||||
// Ditch all the compiled versions of the code, make the method
|
||||
// eligible for sweeping sooner.
|
||||
WHITE_BOX.deoptimizeMethod(method);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user