File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
test/hotspot/jtreg/testlibrary/ctw/src/sun/hotspot/tools/ctw Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -170,17 +170,22 @@ public CompileMethodCommand(long classId, Executable method) {
170170
171171 @ Override
172172 public final void run () {
173+ // Make sure method is not compiled at any level before starting
174+ // progressive compilations. No deopt in-between tiers is needed,
175+ // as long as we increase the compilation levels one by one.
176+ WHITE_BOX .deoptimizeMethod (method );
177+
173178 int compLevel = Utils .INITIAL_COMP_LEVEL ;
174179 if (Utils .TIERED_COMPILATION ) {
175180 for (int i = compLevel ; i <= Utils .TIERED_STOP_AT_LEVEL ; ++i ) {
176- WHITE_BOX .deoptimizeMethod (method );
177181 compileAtLevel (i );
178182 }
179183 } else {
180184 compileAtLevel (compLevel );
181185 }
182186
183- // Make the method eligible for sweeping sooner
187+ // Ditch all the compiled versions of the code, make the method
188+ // eligible for sweeping sooner.
184189 WHITE_BOX .deoptimizeMethod (method );
185190 }
186191
You can’t perform that action at this time.
0 commit comments