< prev index next >

src/hotspot/share/gc/shared/memAllocator.cpp

Print this page
@@ -380,12 +380,11 @@
    Copy::fill_to_aligned_words(mem + hs, _word_size - hs);
  }
  
  oop MemAllocator::finish(HeapWord* mem) const {
    assert(mem != NULL, "NULL object pointer");
-   // May be bootstrapping
-   oopDesc::set_mark(mem, markWord::prototype());
+   oopDesc::set_mark(mem, _klass->prototype_header());
    // Need a release store to ensure array/class length, mark word, and
    // object zeroing are visible before setting the klass non-NULL, for
    // concurrent collectors.
    oopDesc::release_set_klass(mem, _klass);
    return cast_to_oop(mem);
< prev index next >