< prev index next >

test/java/lang/Class/TypeCheckMicroBenchmark.java

Print this page
rev 10985 : [mq]: 8061549

*** 180,198 **** new Job("write into array") { void work() { Object[] a = new Integer[1]; for (int i = 0; i < iterations; i++) { for (Object x : list.toArray()) { try { a[0] = x; } ! catch (ArrayStoreException _) { throw new ClassCastException(); }}}}}, new Job("write into dynamic array") { void work() { for (int i = 0; i < iterations; i++) { for (Object x : list.toArray()) { Object[] a = (Object[]) java.lang.reflect.Array.newInstance(klazz, 1); try { a[0] = x; } ! catch (ArrayStoreException _) { throw new ClassCastException(); }}}}} }; time(filter(filter, jobs)); } --- 180,198 ---- new Job("write into array") { void work() { Object[] a = new Integer[1]; for (int i = 0; i < iterations; i++) { for (Object x : list.toArray()) { try { a[0] = x; } ! catch (ArrayStoreException unused) { throw new ClassCastException(); }}}}}, new Job("write into dynamic array") { void work() { for (int i = 0; i < iterations; i++) { for (Object x : list.toArray()) { Object[] a = (Object[]) java.lang.reflect.Array.newInstance(klazz, 1); try { a[0] = x; } ! catch (ArrayStoreException unused) { throw new ClassCastException(); }}}}} }; time(filter(filter, jobs)); }
< prev index next >