diff -r dbf1a1c172d6 -r 803947e176bd hotspot/src/share/vm/memory/space.cpp --- a/hotspot/src/share/vm/memory/space.cpp Wed May 28 12:42:34 2008 -0700 +++ b/hotspot/src/share/vm/memory/space.cpp Wed May 28 21:06:24 2008 -0700 @@ -815,6 +815,7 @@ "size for smallest fake object doesn't match"); instanceOop obj = (instanceOop) allocate(size); obj->set_mark(markOopDesc::prototype()); + obj->set_klass_gap(0); obj->set_klass(SystemDictionary::object_klass()); } }