Skip to content

Commit 8011ba7

Browse files
committed
8308181: Generational ZGC: Remove CLDG_lock from old gen root scanning
Reviewed-by: ayang, aboldtch
1 parent 8aa5028 commit 8011ba7

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

src/hotspot/share/gc/z/zGeneration.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,13 +1421,7 @@ class ZRemapYoungRootsTask : public ZTask {
14211421
_cl_colored(),
14221422
_cld_cl(&_cl_colored),
14231423
_thread_cl(),
1424-
_nm_cl() {
1425-
ClassLoaderDataGraph_lock->lock();
1426-
}
1427-
1428-
~ZRemapYoungRootsTask() {
1429-
ClassLoaderDataGraph_lock->unlock();
1430-
}
1424+
_nm_cl() {}
14311425

14321426
virtual void work() {
14331427
{

src/hotspot/share/gc/z/zMark.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -829,13 +829,7 @@ class ZMarkOldRootsTask : public ZTask {
829829
_cl_colored(),
830830
_cld_cl(&_cl_colored),
831831
_thread_cl(),
832-
_nm_cl() {
833-
ClassLoaderDataGraph_lock->lock();
834-
}
835-
836-
~ZMarkOldRootsTask() {
837-
ClassLoaderDataGraph_lock->unlock();
838-
}
832+
_nm_cl() {}
839833

840834
virtual void work() {
841835
{

0 commit comments

Comments
 (0)