Skip to content

Commit c445a32

Browse files
committed
Strengthen boolean store regression coverage
1 parent af63d68 commit c445a32

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎test/java/BooleanStore.java‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,13 @@ public static void main(String[] args) throws Exception {
3030
if (changes != 1) throw new AssertionError(changes);
3131
var method = new Loader().define(bytes).getMethod("store", boolean[].class);
3232
for (int i = 0; i < 1000; i++) {
33-
int value = (int) method.invoke(null, new boolean[1]);
33+
int value = (int) method.invoke(null, new boolean[] { true });
3434
if (i == 0 || i == 999) System.out.println(value);
3535
}
36+
try {
37+
method.invoke(null, (Object) null);
38+
} catch (java.lang.reflect.InvocationTargetException e) {
39+
System.out.println("hot null store: " + e.getCause().getClass().getName());
40+
}
3641
}
3742
}

0 commit comments

Comments
 (0)