diff -r 4c24294029a9 -r f7fc7a708b63 hotspot/src/share/vm/memory/space.cpp --- a/hotspot/src/share/vm/memory/space.cpp Thu Jun 05 15:57:56 2008 -0700 +++ b/hotspot/src/share/vm/memory/space.cpp Thu Jun 12 13:50:55 2008 -0700 @@ -844,6 +844,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()); } }