test/compiler/arraycopy/TestArrayCopyNoInit.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff test/compiler/arraycopy/TestArrayCopyNoInit.java

test/compiler/arraycopy/TestArrayCopyNoInit.java

Print this page
rev 8008 : 8073866: Fix for 8064703 is not sufficient
Summary: side effects between allocation and arraycopy can be reexecuted, unreachable uninitialized array can be seen by GCs
Reviewed-by:

*** 74,84 **** } static TestArrayCopyNoInit[] m5(Object[] src) { Object tmp = src[0]; TestArrayCopyNoInit[] dest = new TestArrayCopyNoInit[10]; ! System.arraycopy(src, 0, dest, 0, 0); return dest; } static class A { } --- 74,84 ---- } static TestArrayCopyNoInit[] m5(Object[] src) { Object tmp = src[0]; TestArrayCopyNoInit[] dest = new TestArrayCopyNoInit[10]; ! System.arraycopy(src, 0, dest, 0, 10); return dest; } static class A { }
*** 108,118 **** } static H[] m6(Object[] src) { Object tmp = src[0]; H[] dest = new H[10]; ! System.arraycopy(src, 0, dest, 0, 0); return dest; } static Object m7_src(Object src) { return src; --- 108,118 ---- } static H[] m6(Object[] src) { Object tmp = src[0]; H[] dest = new H[10]; ! System.arraycopy(src, 0, dest, 0, 10); return dest; } static Object m7_src(Object src) { return src;
test/compiler/arraycopy/TestArrayCopyNoInit.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File