8285976: compiler/exceptions/OptimizeImplicitExceptions.java can't pass with -XX:+DeoptimizeALot

Reviewed-by: kvn, thartmann, simonis
This commit is contained in:
Xin Liu 2022-05-04 17:59:39 +00:00
parent df8c2be5fe
commit c5a0687f80

@ -195,6 +195,11 @@ public class OptimizeImplicitExceptions {
return;
}
// The following options are both develop, or nops in product build.
// If they are set, disable them for test stability. It's fine because we use /othervm above.
WB.setBooleanVMFlag("DeoptimizeALot", false);
WB.setBooleanVMFlag("DeoptimizeRandom", false);
// Initialize global deopt counts to zero.
for (ImplicitException impExcp : ImplicitException.values()) {
oldDeoptCountReason.put(impExcp.getReason(), 0);