< prev index next >
src/hotspot/share/runtime/jniHandles.cpp
Print this page
@@ -325,15 +325,13 @@
void JNIHandles::verify() {
VerifyJNIHandles verify_handle;
oops_do(&verify_handle);
-#if INCLUDE_ZGC
- // In ZGC, JNI weaks are handled concurrently, so they can't be verified here
- if (!UseZGC)
-#endif
- {
+
+ // JNI weaks are handled concurrently in ZGC, so they can't be verified here
+ if (!UseZGC) {
weak_oops_do(&verify_handle);
}
}
// This method is implemented here to avoid circular includes between
< prev index next >