< prev index next >

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

Print this page

        

@@ -46,10 +46,13 @@
 public:
   virtual void do_thread(Thread* thread) {
     // Update thread local address bad mask
     ZThreadLocalData::set_address_bad_mask(thread, ZAddressBadMask);
 
+    // Relocate invisible root
+    ZThreadLocalData::do_invisible_root(thread, ZBarrier::relocate_barrier_on_root_oop_field);
+
     // Remap TLAB
     ZThreadLocalAllocBuffer::remap(thread);
   }
 
   virtual void do_oop(oop* p) {

@@ -67,11 +70,11 @@
   ZRelocateRootsIteratorClosure _cl;
 
 public:
   ZRelocateRootsTask() :
       ZTask("ZRelocateRootsTask"),
-      _roots(true /* visit_invisible */, true /* visit_jvmti_weak_export */) {}
+      _roots(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);
< prev index next >