diff -r c80f6ecb0bb3 -r 5f9eee6b383b hotspot/src/share/vm/prims/jni.h --- a/hotspot/src/share/vm/prims/jni.h Tue Mar 15 13:48:21 2016 -0700 +++ b/hotspot/src/share/vm/prims/jni.h Thu Mar 17 19:04:01 2016 +0000 @@ -765,6 +765,17 @@ jobjectRefType (JNICALL *GetObjectRefType) (JNIEnv* env, jobject obj); + + /* Module Features */ + + jobject (JNICALL *GetModule) + (JNIEnv* env, jclass clazz); + + void (JNICALL *AddModuleReads) + (JNIEnv* env, jobject m1, jobject m2); + + jboolean (JNICALL *CanReadModule) + (JNIEnv* env, jobject m1, jobject m2); }; /* @@ -1857,6 +1868,20 @@ return functions->GetObjectRefType(this, obj); } + /* Module Features */ + + jobject GetModule(jclass clazz) { + return functions->GetModule(this, clazz); + } + + void AddModuleReads(jobject fromModule, jobject sourceModule) { + functions->AddModuleReads(this, fromModule, sourceModule); + } + + jboolean CanReadModule(jobject askingModule, jobject sourceModule) { + return functions->CanReadModule(this, askingModule, sourceModule); + } + #endif /* __cplusplus */ };