< prev index next >
src/hotspot/share/include/jvm.h
Print this page
*** 315,341 ****
JVM_NewArray(JNIEnv *env, jclass eltClass, jint length);
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.
*/
JNIEXPORT jclass JNICALL
! JVM_GetCallerClass(JNIEnv *env, int depth);
/*
* Find primitive classes
* utf: class name
--- 315,336 ----
JVM_NewArray(JNIEnv *env, jclass eltClass, jint length);
JNIEXPORT jobject JNICALL
JVM_NewMultiArray(JNIEnv *env, jclass eltClass, jintArray dim);
/*
* 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 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);
/*
* Find primitive classes
* utf: class name
< prev index next >