# HG changeset patch # User Roland Schatz # Date 1385395470 -3600 # Node ID ebb61e1a3a835be61ed214b9761944ad6c215271 # Parent 79f52f7e7a082bf7f468ed338c5831ef6eb6f879 Use initializeWord in NewObjectSnippets. diff -r 79f52f7e7a08 -r ebb61e1a3a83 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/NewObjectSnippets.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/NewObjectSnippets.java Mon Nov 25 17:04:18 2013 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/replacements/NewObjectSnippets.java Mon Nov 25 17:04:30 2013 +0100 @@ -246,12 +246,12 @@ new_seqInit.inc(); explodeLoop(); for (int offset = instanceHeaderSize(); offset < size; offset += wordSize()) { - memory.writeWord(offset, Word.zero(), INIT_LOCATION); + memory.initializeWord(offset, Word.zero(), INIT_LOCATION); } } else { new_loopInit.inc(); for (int offset = instanceHeaderSize(); offset < size; offset += wordSize()) { - memory.writeWord(offset, Word.zero(), INIT_LOCATION); + memory.initializeWord(offset, Word.zero(), INIT_LOCATION); } } } @@ -270,7 +270,7 @@ initializeObjectHeader(memory, prototypeMarkWord, hub); if (fillContents) { for (int offset = headerSize; offset < allocationSize; offset += wordSize()) { - memory.writeWord(offset, Word.zero(), INIT_LOCATION); + memory.initializeWord(offset, Word.zero(), INIT_LOCATION); } } return memory.toObject();