# HG changeset patch # User Doug Simon # Date 1421921766 -3600 # Node ID 1b0ef9634252c422b6f9839fc62eebc112545486 # Parent 6fe49fc03faefa0f9e48bedf3cbc8a6d808ded94 removed unused HotSpotGraalRuntime.setRuntimeAccessCheck() diff -r 6fe49fc03fae -r 1b0ef9634252 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 Thu Jan 22 09:45:56 2015 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntime.java Thu Jan 22 11:16:06 2015 +0100 @@ -31,7 +31,6 @@ import java.lang.reflect.*; import java.util.*; -import java.util.function.*; import sun.misc.*; @@ -80,25 +79,11 @@ } } - private static Predicate runtimeAccessCheck; - - /** - * Sets a predicate which will be used to assert a valid calling context for a call to - * {@link #runtime()}. This is useful for verifying execution scopes that should not make a - * static access to {@link HotSpotGraalRuntime}. Such scopes are responsible for resetting the - * predicate to null. - */ - public static void setRuntimeAccessCheck(Predicate predicate) { - assert runtimeAccessCheck == null || predicate == null : "at most once runtime access check can be active"; - runtimeAccessCheck = predicate; - } - /** * Gets the singleton {@link HotSpotGraalRuntime} object. */ public static HotSpotGraalRuntime runtime() { assert instance != null; - assert runtimeAccessCheck == null || runtimeAccessCheck.test(null); return instance; }