Skip to content

Commit 686d6b0

Browse files
committed
Do not force HPy LLVM backend if native access is not allowed
1 parent 27a4c92 commit 686d6b0

File tree

1 file changed

+1
-8
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy

1 file changed

+1
-8
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy/GraalHPyContext.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -313,14 +313,7 @@ public GraalHPyContext(PythonContext context, Object hpyLibrary) throws Exceptio
313313
PythonLanguage language = context.getLanguage();
314314
int traceUpcallsInterval = language.getEngineOption(PythonOptions.HPyTraceUpcalls);
315315
Boolean useNativeFastPaths = language.getEngineOption(PythonOptions.HPyEnableJNIFastPaths);
316-
HPyBackendMode backendMode;
317-
if (!context.getEnv().isNativeAccessAllowed()) {
318-
// TODO(fa): We should just fail and the launcher should set the backend appropriately
319-
// (GR-46631).
320-
backendMode = HPyBackendMode.LLVM;
321-
} else {
322-
backendMode = context.getOption(PythonOptions.HPyBackend);
323-
}
316+
HPyBackendMode backendMode = context.getOption(PythonOptions.HPyBackend);
324317

325318
nextHandle = GraalHPyBoxing.SINGLETON_HANDLE_MAX + 1;
326319
hpyHandleTable = new Object[IMMUTABLE_HANDLE_COUNT * 2];

0 commit comments

Comments
 (0)