--- old/src/hotspot/share/include/jvm.h 2017-12-22 10:12:46.581580209 +0000 +++ new/src/hotspot/share/include/jvm.h 2017-12-22 10:12:46.369584834 +0000 @@ -317,23 +317,18 @@ JNIEXPORT jobject JNICALL JVM_NewMultiArray(JNIEnv *env, jclass eltClass, jintArray dim); -/* - * java.lang.Class and java.lang.ClassLoader - */ - -#define JVM_CALLER_DEPTH -1 /* * Returns the immediate caller class of the native method invoking * JVM_GetCallerClass. The Method.invoke and other frames due to * reflection machinery are skipped. * - * The depth parameter must be -1 (JVM_DEPTH). The caller is expected - * to be marked with sun.reflect.CallerSensitive. The JVM will throw - * an error if it is not marked propertly. + * The caller is expected to be marked with + * jdk.internal.reflect.CallerSensitive. The JVM will throw an + * error if it is not marked properly. */ JNIEXPORT jclass JNICALL -JVM_GetCallerClass(JNIEnv *env, int depth); +JVM_GetCallerClass(JNIEnv *env); /*