src/java.base/share/classes/sun/reflect/Reflection.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/java.base/share/classes/sun/reflect/Reflection.java	Mon Jun 29 11:11:57 2015
--- new/src/java.base/share/classes/sun/reflect/Reflection.java	Mon Jun 29 11:11:57 2015

*** 26,35 **** --- 26,36 ---- package sun.reflect; import java.lang.reflect.*; import java.util.HashMap; import java.util.Map; + import jdk.internal.HotSpotIntrinsicCandidate; /** Common utility routines used by both java.lang and java.lang.reflect */ public class Reflection {
*** 54,63 **** --- 55,65 ---- /** Returns the class of the caller of the method calling this method, ignoring frames associated with java.lang.reflect.Method.invoke() and its implementation. */ @CallerSensitive + @HotSpotIntrinsicCandidate public static native Class<?> getCallerClass(); /** * @deprecated This method will be removed in JDK 9. * This method is a private JDK API and retained temporarily for
*** 72,81 **** --- 74,84 ---- attribute to find the source-level access flags. This is used instead of Class.getModifiers() for run-time access checks due to compatibility reasons; see 4471811. Only the values of the low 13 bits (i.e., a mask of 0x1FFF) are guaranteed to be valid. */ + @HotSpotIntrinsicCandidate public static native int getClassAccessFlags(Class<?> c); /** A quick "fast-path" check to try to avoid getCallerClass() calls. */ public static boolean quickCheckMemberAccess(Class<?> memberClass,

src/java.base/share/classes/sun/reflect/Reflection.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File