< prev index next >

src/hotspot/share/gc/z/zRootsIterator.hpp

Print this page




 132 private:
 133   void do_jvmti_weak_export(BoolObjectClosure* is_alive, ZRootsIteratorClosure* cl);
 134   void do_jfr_weak(BoolObjectClosure* is_alive, ZRootsIteratorClosure* cl);
 135 
 136   ZSerialWeakOopsDo<ZWeakRootsIterator, &ZWeakRootsIterator::do_jvmti_weak_export>  _jvmti_weak_export;
 137   ZSerialWeakOopsDo<ZWeakRootsIterator, &ZWeakRootsIterator::do_jfr_weak>           _jfr_weak;
 138 
 139 public:
 140   ZWeakRootsIterator();
 141   ~ZWeakRootsIterator();
 142 
 143   void weak_oops_do(BoolObjectClosure* is_alive, ZRootsIteratorClosure* cl);
 144   void oops_do(ZRootsIteratorClosure* cl);
 145 };
 146 
 147 class ZConcurrentWeakRootsIterator {
 148 private:
 149   ZOopStorageIterator _vm_weak_handles_iter;
 150   ZOopStorageIterator _jni_weak_handles_iter;
 151   ZOopStorageIterator _string_table_iter;
 152   ZOopStorageIterator _resolved_method_table_iter;
 153 
 154   void do_vm_weak_handles(ZRootsIteratorClosure* cl);
 155   void do_jni_weak_handles(ZRootsIteratorClosure* cl);
 156   void do_string_table(ZRootsIteratorClosure* cl);
 157   void do_resolved_method_table(ZRootsIteratorClosure* cl);
 158 
 159   ZParallelOopsDo<ZConcurrentWeakRootsIterator, &ZConcurrentWeakRootsIterator::do_vm_weak_handles>       _vm_weak_handles;
 160   ZParallelOopsDo<ZConcurrentWeakRootsIterator, &ZConcurrentWeakRootsIterator::do_jni_weak_handles>      _jni_weak_handles;
 161   ZParallelOopsDo<ZConcurrentWeakRootsIterator, &ZConcurrentWeakRootsIterator::do_string_table>          _string_table;
 162   ZParallelOopsDo<ZConcurrentWeakRootsIterator, &ZConcurrentWeakRootsIterator::do_resolved_method_table> _resolved_method_table;
 163 
 164 public:
 165   ZConcurrentWeakRootsIterator();
 166   ~ZConcurrentWeakRootsIterator();
 167 
 168   void oops_do(ZRootsIteratorClosure* cl);
 169 };
 170 
 171 class ZThreadRootsIterator {
 172 private:
 173   void do_threads(ZRootsIteratorClosure* cl);
 174 
 175   ZParallelOopsDo<ZThreadRootsIterator, &ZThreadRootsIterator::do_threads> _threads;
 176 
 177 public:
 178   ZThreadRootsIterator();
 179   ~ZThreadRootsIterator();
 180 
 181   void oops_do(ZRootsIteratorClosure* cl);
 182 };


 132 private:
 133   void do_jvmti_weak_export(BoolObjectClosure* is_alive, ZRootsIteratorClosure* cl);
 134   void do_jfr_weak(BoolObjectClosure* is_alive, ZRootsIteratorClosure* cl);
 135 
 136   ZSerialWeakOopsDo<ZWeakRootsIterator, &ZWeakRootsIterator::do_jvmti_weak_export>  _jvmti_weak_export;
 137   ZSerialWeakOopsDo<ZWeakRootsIterator, &ZWeakRootsIterator::do_jfr_weak>           _jfr_weak;
 138 
 139 public:
 140   ZWeakRootsIterator();
 141   ~ZWeakRootsIterator();
 142 
 143   void weak_oops_do(BoolObjectClosure* is_alive, ZRootsIteratorClosure* cl);
 144   void oops_do(ZRootsIteratorClosure* cl);
 145 };
 146 
 147 class ZConcurrentWeakRootsIterator {
 148 private:
 149   ZOopStorageIterator _vm_weak_handles_iter;
 150   ZOopStorageIterator _jni_weak_handles_iter;
 151   ZOopStorageIterator _string_table_iter;

 152 
 153   void do_vm_weak_handles(ZRootsIteratorClosure* cl);
 154   void do_jni_weak_handles(ZRootsIteratorClosure* cl);
 155   void do_string_table(ZRootsIteratorClosure* cl);

 156 
 157   ZParallelOopsDo<ZConcurrentWeakRootsIterator, &ZConcurrentWeakRootsIterator::do_vm_weak_handles>  _vm_weak_handles;
 158   ZParallelOopsDo<ZConcurrentWeakRootsIterator, &ZConcurrentWeakRootsIterator::do_jni_weak_handles> _jni_weak_handles;
 159   ZParallelOopsDo<ZConcurrentWeakRootsIterator, &ZConcurrentWeakRootsIterator::do_string_table>     _string_table;

 160 
 161 public:
 162   ZConcurrentWeakRootsIterator();
 163   ~ZConcurrentWeakRootsIterator();
 164 
 165   void oops_do(ZRootsIteratorClosure* cl);
 166 };
 167 
 168 class ZThreadRootsIterator {
 169 private:
 170   void do_threads(ZRootsIteratorClosure* cl);
 171 
 172   ZParallelOopsDo<ZThreadRootsIterator, &ZThreadRootsIterator::do_threads> _threads;
 173 
 174 public:
 175   ZThreadRootsIterator();
 176   ~ZThreadRootsIterator();
 177 
 178   void oops_do(ZRootsIteratorClosure* cl);
 179 };
< prev index next >