# HG changeset patch # User Andreas Woess # Date 1394539402 -3600 # Node ID 9864ae31e1fe4f73a71469bcec3e073852e8c523 # Parent 976f44f08fb317f09b0f4742b667d5b6f8241952 add @CallerSensitive annotations (JBS:GRAAL-22) diff -r 976f44f08fb3 -r 9864ae31e1fe graal/com.oracle.graal.api.runtime/src/com/oracle/graal/api/runtime/Graal.java --- a/graal/com.oracle.graal.api.runtime/src/com/oracle/graal/api/runtime/Graal.java Mon Mar 10 13:41:24 2014 -0700 +++ b/graal/com.oracle.graal.api.runtime/src/com/oracle/graal/api/runtime/Graal.java Tue Mar 11 13:03:22 2014 +0100 @@ -34,6 +34,7 @@ public static final java.security.Permission ACCESS_PERMISSION = new ReflectPermission("allowGraalAccess"); + @CallerSensitive public static GraalRuntime getRuntime() { Class cc = Reflection.getCallerClass(); if (cc.getClassLoader() != null) { @@ -53,6 +54,7 @@ } } + @CallerSensitive public static T getRequiredCapability(Class clazz) { Class cc = Reflection.getCallerClass(); if (cc.getClassLoader() != null) { diff -r 976f44f08fb3 -r 9864ae31e1fe graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntime.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntime.java Mon Mar 10 13:41:24 2014 -0700 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntime.java Tue Mar 11 13:03:22 2014 +0100 @@ -59,6 +59,7 @@ /** * Gets the singleton {@link HotSpotGraalRuntime} object. */ + @CallerSensitive public static HotSpotGraalRuntime runtime() { Class cc = Reflection.getCallerClass(); if (cc != null && cc.getClassLoader() != null) {