equal
deleted
inserted
replaced
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() { |