src/hotspot/share/runtime/jniHandles.cpp
changeset 50525 767cdb97f103
parent 50113 caf115bb98ad
child 50599 ecc2af326b5f
equal deleted inserted replaced
50524:04f4e983c2f7 50525:767cdb97f103
   325 
   325 
   326 void JNIHandles::verify() {
   326 void JNIHandles::verify() {
   327   VerifyJNIHandles verify_handle;
   327   VerifyJNIHandles verify_handle;
   328 
   328 
   329   oops_do(&verify_handle);
   329   oops_do(&verify_handle);
   330   weak_oops_do(&verify_handle);
   330 
       
   331   // JNI weaks are handled concurrently in ZGC, so they can't be verified here
       
   332   if (!UseZGC) {
       
   333     weak_oops_do(&verify_handle);
       
   334   }
   331 }
   335 }
   332 
   336 
   333 // This method is implemented here to avoid circular includes between
   337 // This method is implemented here to avoid circular includes between
   334 // jniHandles.hpp and thread.hpp.
   338 // jniHandles.hpp and thread.hpp.
   335 bool JNIHandles::current_thread_in_native() {
   339 bool JNIHandles::current_thread_in_native() {