8308181: Generational ZGC: Remove CLDG_lock from old gen root scanning

Reviewed-by: ayang, aboldtch
This commit is contained in:
Erik Österlund 2023-05-22 10:20:45 +00:00
parent 8aa50288a1
commit 8011ba74a2
2 changed files with 2 additions and 14 deletions

View File

@ -1421,13 +1421,7 @@ public:
_cl_colored(),
_cld_cl(&_cl_colored),
_thread_cl(),
_nm_cl() {
ClassLoaderDataGraph_lock->lock();
}
~ZRemapYoungRootsTask() {
ClassLoaderDataGraph_lock->unlock();
}
_nm_cl() {}
virtual void work() {
{

View File

@ -829,13 +829,7 @@ public:
_cl_colored(),
_cld_cl(&_cl_colored),
_thread_cl(),
_nm_cl() {
ClassLoaderDataGraph_lock->lock();
}
~ZMarkOldRootsTask() {
ClassLoaderDataGraph_lock->unlock();
}
_nm_cl() {}
virtual void work() {
{