8210064: ZGC: Introduce ZConcurrentRootsIterator for scanning a subset of strong IN_NATIVE roots concurrently

Reviewed-by: pliden, kbarrett
This commit is contained in:
Erik Österlund 2018-10-16 13:14:18 +02:00
parent 5f2b11d373
commit 782fa608d2
13 changed files with 146 additions and 49 deletions

View file

@ -172,8 +172,10 @@ void ZHeapIterator::objects_do(ObjectClosure* cl) {
// this the user would have expected to see ObjectFree events for
// unreachable objects in the tag map.
ZRootsIterator roots;
ZConcurrentRootsIterator concurrent_roots(false /* marking */);
ZHeapIteratorRootOopClosure root_cl(this);
roots.oops_do(&root_cl, true /* visit_jvmti_weak_export */);
concurrent_roots.oops_do(&root_cl);
}
// Drain stack