< prev index next >

src/share/vm/gc/serial/markSweep.inline.hpp

Print this page

        

*** 70,83 **** inline void MarkSweep::follow_klass(Klass* klass) { oop op = klass->klass_holder(); MarkSweep::mark_and_push(&op); } inline void MarkSweep::follow_object(oop obj) { assert(obj->is_gc_marked(), "should be marked"); ! obj->ms_follow_contents(); } template <class T> inline void MarkSweep::follow_root(T* p) { assert(!Universe::heap()->is_in_reserved(p), "roots shouldn't be things within the heap"); --- 70,87 ---- inline void MarkSweep::follow_klass(Klass* klass) { oop op = klass->klass_holder(); MarkSweep::mark_and_push(&op); } + inline void MarkSweep::follow_cld(ClassLoaderData* cld) { + MarkSweep::follow_cld_closure.do_cld(cld); + } + inline void MarkSweep::follow_object(oop obj) { assert(obj->is_gc_marked(), "should be marked"); ! obj->oop_iterate(&mark_and_push_closure); } template <class T> inline void MarkSweep::follow_root(T* p) { assert(!Universe::heap()->is_in_reserved(p), "roots shouldn't be things within the heap");
< prev index next >