|
169 | 169 | import com.oracle.graal.python.util.PythonUtils;
|
170 | 170 | import com.oracle.graal.python.util.ShutdownHook;
|
171 | 171 | import com.oracle.graal.python.util.Supplier;
|
172 |
| -import com.oracle.truffle.api.Assumption; |
173 | 172 | import com.oracle.truffle.api.CallTarget;
|
174 | 173 | import com.oracle.truffle.api.CompilerAsserts;
|
175 | 174 | import com.oracle.truffle.api.CompilerDirectives;
|
|
179 | 178 | import com.oracle.truffle.api.HostCompilerDirectives.InliningCutoff;
|
180 | 179 | import com.oracle.truffle.api.RootCallTarget;
|
181 | 180 | import com.oracle.truffle.api.ThreadLocalAction;
|
182 |
| -import com.oracle.truffle.api.Truffle; |
183 | 181 | import com.oracle.truffle.api.TruffleContext;
|
184 | 182 | import com.oracle.truffle.api.TruffleContext.Builder;
|
185 | 183 | import com.oracle.truffle.api.TruffleFile;
|
@@ -729,8 +727,6 @@ PythonThreadState getThreadState(Node n) {
|
729 | 727 |
|
730 | 728 | private TruffleString soABI; // cache for soAPI
|
731 | 729 |
|
732 |
| - private static final Assumption singleNativeContext = Truffle.getRuntime().createAssumption("single native context assumption"); |
733 |
| - |
734 | 730 | private static final class GlobalInterpreterLock extends ReentrantLock {
|
735 | 731 | private static final long serialVersionUID = 1L;
|
736 | 732 |
|
@@ -2224,10 +2220,6 @@ public void initializeMainModule(TruffleString path) {
|
2224 | 2220 | }
|
2225 | 2221 | }
|
2226 | 2222 |
|
2227 |
| - public static Assumption getSingleNativeContextAssumption() { |
2228 |
| - return singleNativeContext; |
2229 |
| - } |
2230 |
| - |
2231 | 2223 | public boolean isExecutableAccessAllowed() {
|
2232 | 2224 | return getEnv().isHostLookupAllowed() || isNativeAccessAllowed();
|
2233 | 2225 | }
|
|
0 commit comments