mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
8210064: ZGC: Introduce ZConcurrentRootsIterator for scanning a subset of strong IN_NATIVE roots concurrently
Reviewed-by: pliden, kbarrett
This commit is contained in:
parent
5f2b11d373
commit
782fa608d2
13 changed files with 146 additions and 49 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue