changeset 18910:1b0ef9634252 gpu-0.1

removed unused HotSpotGraalRuntime.setRuntimeAccessCheck()
author Doug Simon <doug.simon@oracle.com>
date Thu, 22 Jan 2015 11:16:06 +0100
parents 6fe49fc03fae
children 91fee1fab96d
files graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotGraalRuntime.java
diffstat 1 files changed, 0 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- 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<Void> 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<Void> 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;
     }