# HG changeset patch # User Christos Kotselidis # Date 1385984718 -3600 # Node ID bef512e4226226e6ac6e5d4e5bc136572b301037 # Parent ffa3d2d26cc2a6e7c85cd6fda112853b2bdd946d# Parent 401e1473c54675ca687147f27c24c0c6d3472545 Merge diff -r 401e1473c546 -r bef512e42262 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/phases/WriteBarrierAdditionPhase.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/phases/WriteBarrierAdditionPhase.java Sat Nov 30 19:09:55 2013 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/phases/WriteBarrierAdditionPhase.java Mon Dec 02 12:45:18 2013 +0100 @@ -98,7 +98,9 @@ } } else if (barrierType == BarrierType.IMPRECISE) { if (useG1GC()) { - addG1PreWriteBarrier(node, node.object(), null, node.location(), true, node.getNullCheck(), graph); + if (!node.isInitialization()) { + addG1PreWriteBarrier(node, node.object(), null, node.location(), true, node.getNullCheck(), graph); + } addG1PostWriteBarrier(node, node.object(), node.value(), node.location(), false, graph); } else { addSerialPostWriteBarrier(node, node.object(), node.value(), node.location(), false, graph);