src/hotspot/share/include/jvm.h
changeset 48477 b7af6f568d00
parent 48320 8e561c68f72a
child 49176 f413e471a6ab
equal deleted inserted replaced
48476:ca9489245872 48477:b7af6f568d00
   315 JVM_NewArray(JNIEnv *env, jclass eltClass, jint length);
   315 JVM_NewArray(JNIEnv *env, jclass eltClass, jint length);
   316 
   316 
   317 JNIEXPORT jobject JNICALL
   317 JNIEXPORT jobject JNICALL
   318 JVM_NewMultiArray(JNIEnv *env, jclass eltClass, jintArray dim);
   318 JVM_NewMultiArray(JNIEnv *env, jclass eltClass, jintArray dim);
   319 
   319 
   320 /*
       
   321  * java.lang.Class and java.lang.ClassLoader
       
   322  */
       
   323 
       
   324 #define JVM_CALLER_DEPTH -1
       
   325 
   320 
   326 /*
   321 /*
   327  * Returns the immediate caller class of the native method invoking
   322  * Returns the immediate caller class of the native method invoking
   328  * JVM_GetCallerClass.  The Method.invoke and other frames due to
   323  * JVM_GetCallerClass.  The Method.invoke and other frames due to
   329  * reflection machinery are skipped.
   324  * reflection machinery are skipped.
   330  *
   325  *
   331  * The depth parameter must be -1 (JVM_DEPTH). The caller is expected
   326  * The caller is expected to be marked with
   332  * to be marked with sun.reflect.CallerSensitive.  The JVM will throw
   327  * jdk.internal.reflect.CallerSensitive. The JVM will throw an
   333  * an error if it is not marked propertly.
   328  * error if it is not marked properly.
   334  */
   329  */
   335 JNIEXPORT jclass JNICALL
   330 JNIEXPORT jclass JNICALL
   336 JVM_GetCallerClass(JNIEnv *env, int depth);
   331 JVM_GetCallerClass(JNIEnv *env);
   337 
   332 
   338 
   333 
   339 /*
   334 /*
   340  * Find primitive classes
   335  * Find primitive classes
   341  * utf: class name
   336  * utf: class name