< prev index next >
test/hotspot/jtreg/compiler/valhalla/valuetypes/TestOnStackReplacement.java
Print this page
@@ -138,39 +138,39 @@
public Object test4_body() {
return MyValue1.createWithFieldsInline(rI, rL);
}
@Test()
- public Object test4() throws Throwable {
+ public Object test4() {
Object vt = test4_init();
for (int i = 0; i < 50_000; i++) {
if (i % 2 == 1) {
vt = test4_body();
}
}
return vt;
}
@DontCompile
- public void test4_verifier(boolean warmup) throws Throwable {
+ public void test4_verifier(boolean warmup) {
test4();
}
// OSR compilation with null value type local
__NotFlattened MyValue1 nullField;
@Test()
- public void test5() throws Throwable {
+ public void test5() {
MyValue1 vt = nullField;
for (int i = 0; i < 50_000; i++) {
if ((Object)vt != null) {
throw new RuntimeException("test5 failed: No NPE thrown");
}
}
}
@DontCompile
- public void test5_verifier(boolean warmup) throws Throwable {
+ public void test5_verifier(boolean warmup) {
test5();
}
}
< prev index next >