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

Reviewed-by: ayang, aboldtch
(cherry picked from commit 8011ba74a2)
This commit is contained in:
Erik Österlund
2023-05-22 10:20:45 +00:00
committed by Vitaly Provodin
parent 653e101c31
commit 0f3393da8e
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() {
{