comparison src/share/vm/memory/space.cpp @ 167:feeb96a45707

6696264: assert("narrow oop can never be zero") for GCBasher & ParNewGC Summary: decouple set_klass() with zeroing the gap when compressed. Reviewed-by: kvn, ysr, jrose
author coleenp
date Wed, 28 May 2008 21:06:24 -0700
parents ba764ed4b6f2
children d1605aabd0a1 12eea04c8b06 6aae2f9d0294
comparison
equal deleted inserted replaced
166:aaa1137c5ef4 167:feeb96a45707
813 } else { 813 } else {
814 assert((int) size == instanceOopDesc::header_size(), 814 assert((int) size == instanceOopDesc::header_size(),
815 "size for smallest fake object doesn't match"); 815 "size for smallest fake object doesn't match");
816 instanceOop obj = (instanceOop) allocate(size); 816 instanceOop obj = (instanceOop) allocate(size);
817 obj->set_mark(markOopDesc::prototype()); 817 obj->set_mark(markOopDesc::prototype());
818 obj->set_klass_gap(0);
818 obj->set_klass(SystemDictionary::object_klass()); 819 obj->set_klass(SystemDictionary::object_klass());
819 } 820 }
820 } 821 }
821 822
822 void EdenSpace::clear() { 823 void EdenSpace::clear() {