8203911: Test runtime/modules/getModuleJNI/GetModule fails with -Xcheck:jni
authorhseigel
Fri, 06 Jul 2018 06:26:25 -0700
changeset 50945 810cb95f19c9
parent 50944 8cc36fac7f3d
child 50946 be2d74d91351
8203911: Test runtime/modules/getModuleJNI/GetModule fails with -Xcheck:jni Summary: Remove unneeded validate_class() check from checked_jni_GetModule(). Reviewed-by: dholmes, coleenp
src/hotspot/share/prims/jniCheck.cpp
--- a/src/hotspot/share/prims/jniCheck.cpp	Fri Jul 06 09:00:48 2018 -0400
+++ b/src/hotspot/share/prims/jniCheck.cpp	Fri Jul 06 06:26:25 2018 -0700
@@ -1995,9 +1995,6 @@
   checked_jni_GetModule(JNIEnv *env,
                         jclass clazz))
     functionEnter(thr);
-    IN_VM(
-      jniCheck::validate_class(thr, clazz, false);
-    )
     jobject result = UNCHECKED()->GetModule(env,clazz);
     functionExit(thr);
     return result;