equal
deleted
inserted
replaced
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() { |