< prev index next >

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


*** 168,179 **** --- 168,181 ---- // strong roots to make sure we visit all tagged objects, even // those that might now have become unreachable. If we didn't do // this the user would have expected to see ObjectFree events for // unreachable objects in the tag map. ZRootsIterator roots; + ZConcurrentRootsIterator concurrent_roots(false /* claim_clds */); ZHeapIteratorRootOopClosure root_cl(this); roots.oops_do(&root_cl, true /* visit_jvmti_weak_export */); + concurrent_roots.oops_do(&root_cl); } // Drain stack while (!_visit_stack.is_empty()) { const oop obj = _visit_stack.pop();
< prev index next >