--- old/src/hotspot/share/include/jvm.h 2019-10-08 18:53:05.000000000 -0700 +++ new/src/hotspot/share/include/jvm.h 2019-10-08 18:53:04.000000000 -0700 @@ -393,6 +393,22 @@ const char *source); /* + * Define a class with the specified lookup class. + * lookup: Lookup class + * name: the name of the class + * loader: defining class loader + * buf: class bytes + * len: length of class bytes + * pd: protection domain + * init: initialize the class + * flags: properties of the class + * classData: private static pre-initialized field; may be null + */ +JNIEXPORT jclass JNICALL +JVM_LookupDefineClass(JNIEnv *env, jclass lookup, const char *name, jobject loader, + const jbyte *buf, jsize len, jobject pd, jboolean init, int flags, jobject classData); + +/* * Module support funcions */ @@ -478,6 +494,9 @@ JNIEXPORT jboolean JNICALL JVM_IsPrimitiveClass(JNIEnv *env, jclass cls); +JNIEXPORT jboolean JNICALL +JVM_IsHiddenClass(JNIEnv *env, jclass cls); + JNIEXPORT jint JNICALL JVM_GetClassModifiers(JNIEnv *env, jclass cls);