hotspot/src/share/vm/memory/space.cpp
changeset 1376 f7fc7a708b63
parent 1374 4c24294029a9
parent 593 803947e176bd
child 1379 ccfaefa561cd
equal deleted inserted replaced
1374:4c24294029a9 1376:f7fc7a708b63
   842   } else {
   842   } else {
   843     assert((int) size == instanceOopDesc::header_size(),
   843     assert((int) size == instanceOopDesc::header_size(),
   844            "size for smallest fake object doesn't match");
   844            "size for smallest fake object doesn't match");
   845     instanceOop obj = (instanceOop) allocate(size);
   845     instanceOop obj = (instanceOop) allocate(size);
   846     obj->set_mark(markOopDesc::prototype());
   846     obj->set_mark(markOopDesc::prototype());
       
   847     obj->set_klass_gap(0);
   847     obj->set_klass(SystemDictionary::object_klass());
   848     obj->set_klass(SystemDictionary::object_klass());
   848   }
   849   }
   849 }
   850 }
   850 
   851 
   851 void EdenSpace::clear() {
   852 void EdenSpace::clear() {