< prev index next > test/hotspot/jtreg/compiler/exceptions/OptimizeImplicitExceptions.java
Print this page
// At this point, throwImplicitException() has been compiled but the compiled version has not been invoked yet.
Asserts.assertEQ(WB.getMethodCompilationLevel(throwImplicitException_m), 4, "Method should be compiled at level 4.");
int trapCount = WB.getMethodTrapCount(throwImplicitException_m);
int trapCountSpecific = WB.getMethodTrapCount(throwImplicitException_m, impExcp.getReason());
- Asserts.assertEQ(trapCount, invocations, "Trap count must much invocation count.");
- Asserts.assertEQ(trapCountSpecific, invocations, "Trap count must much invocation count.");
+ Asserts.assertEQ(trapCount, invocations, "Trap count must match invocation count.");
+ Asserts.assertEQ(trapCountSpecific, invocations, "Trap count must match invocation count.");
Asserts.assertNotNull(ex.getMessage(), "Exceptions thrown in the interpreter should have a message.");
}
// Checks after the JIT-compiled test method has been invoked 'invocations' times.
private static void check(TestMode testMode, ImplicitException impExcp, Exception ex,
< prev index next >