src/hotspot/share/gc/z/zRelocate.cpp
changeset 57851 6728c41f2a08
parent 54330 69e80a82db9a
child 58066 8407928b9fe5
--- a/src/hotspot/share/gc/z/zRelocate.cpp	Fri Aug 23 08:48:18 2019 +0200
+++ b/src/hotspot/share/gc/z/zRelocate.cpp	Fri Aug 23 08:48:23 2019 +0200
@@ -69,12 +69,12 @@
 public:
   ZRelocateRootsTask() :
       ZTask("ZRelocateRootsTask"),
-      _roots() {}
+      _roots(true /* visit_invisible */, true /* visit_jvmti_weak_export */) {}
 
   virtual void work() {
     // During relocation we need to visit the JVMTI
     // export weak roots to rehash the JVMTI tag map
-    _roots.oops_do(&_cl, true /* visit_jvmti_weak_export */);
+    _roots.oops_do(&_cl);
   }
 };