diff -r ba63dd5d7b20 -r 4977554a0c5e hotspot/src/share/vm/gc_implementation/shared/markSweep.inline.hpp --- a/hotspot/src/share/vm/gc_implementation/shared/markSweep.inline.hpp Fri Nov 22 13:42:46 2013 -0800 +++ b/hotspot/src/share/vm/gc_implementation/shared/markSweep.inline.hpp Tue Nov 26 14:35:38 2013 +0100 @@ -44,6 +44,11 @@ } } +inline void MarkSweep::follow_klass(Klass* klass) { + oop op = klass->klass_holder(); + MarkSweep::mark_and_push(&op); +} + template inline void MarkSweep::follow_root(T* p) { assert(!Universe::heap()->is_in_reserved(p), "roots shouldn't be things within the heap");