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() { |