< prev index next >

src/hotspot/share/gc/z/zHeapIterator.cpp

Print this page

        

*** 186,208 **** void ZHeapIterator::push_fields(oop obj) { ZHeapIteratorOopClosure<VisitReferents> cl(this, obj); obj->oop_iterate(&cl); } - class ZHeapIterateConcurrentRootsIterator : public ZConcurrentRootsIterator { - public: - ZHeapIterateConcurrentRootsIterator() : - ZConcurrentRootsIterator(ClassLoaderData::_claim_other) {} - }; - template <bool VisitWeaks> void ZHeapIterator::objects_do(ObjectClosure* cl) { ZStatTimerDisable disable; // Push roots to visit ! push_roots<ZRootsIterator, false /* Concurrent */, false /* Weak */>(); ! push_roots<ZHeapIterateConcurrentRootsIterator, true /* Concurrent */, false /* Weak */>(); if (VisitWeaks) { push_roots<ZWeakRootsIterator, false /* Concurrent */, true /* Weak */>(); push_roots<ZConcurrentWeakRootsIterator, true /* Concurrent */, true /* Weak */>(); } --- 186,202 ---- void ZHeapIterator::push_fields(oop obj) { ZHeapIteratorOopClosure<VisitReferents> cl(this, obj); obj->oop_iterate(&cl); } template <bool VisitWeaks> void ZHeapIterator::objects_do(ObjectClosure* cl) { ZStatTimerDisable disable; // Push roots to visit ! push_roots<ZRootsIterator, false /* Concurrent */, false /* Weak */>(); ! push_roots<ZConcurrentRootsIteratorClaimOther, true /* Concurrent */, false /* Weak */>(); if (VisitWeaks) { push_roots<ZWeakRootsIterator, false /* Concurrent */, true /* Weak */>(); push_roots<ZConcurrentWeakRootsIterator, true /* Concurrent */, true /* Weak */>(); }
< prev index next >