comparison src/share/vm/prims/jvm.h @ 12824:615d83933195

8026025: JVM_GetCallerClass allows Reflection.getCallerClass(int depth) to use Reviewed-by: alanb, dholmes, twisti Contributed-by: mandy.chung@oracle.com
author dholmes
date Tue, 08 Oct 2013 02:56:06 -0400
parents ba9dacff9c9d
children 096c224171c4 2b8e28fdf503 21444610cb92
comparison
equal deleted inserted replaced
12823:ac9cb1d5a202 12824:615d83933195
372 JVM_NewMultiArray(JNIEnv *env, jclass eltClass, jintArray dim); 372 JVM_NewMultiArray(JNIEnv *env, jclass eltClass, jintArray dim);
373 373
374 /* 374 /*
375 * java.lang.Class and java.lang.ClassLoader 375 * java.lang.Class and java.lang.ClassLoader
376 */ 376 */
377
378 #define JVM_CALLER_DEPTH -1
379
377 /* 380 /*
378 * Returns the class in which the code invoking the native method 381 * Returns the class in which the code invoking the native method
379 * belongs. 382 * belongs.
380 * 383 *
381 * Note that in JDK 1.1, native methods did not create a frame. 384 * Note that in JDK 1.1, native methods did not create a frame.