8297349: Parallel: Use correct claim value for CLD oop iteration in PSScavengeCLDClosure

Reviewed-by: tschatzl, shade
This commit is contained in:
Albert Mingkun Yang 2022-11-22 14:40:51 +00:00
parent 932bf3539c
commit 0ac5b55311

View File

@ -131,7 +131,7 @@ public:
_oop_closure.set_scanned_cld(cld);
// Clean the cld since we're going to scavenge all the metadata.
cld->oops_do(&_oop_closure, false, /*clear_modified_oops*/true);
cld->oops_do(&_oop_closure, ClassLoaderData::_claim_none, /*clear_modified_oops*/true);
_oop_closure.set_scanned_cld(NULL);
}