Skip to content

Commit 4ff8c5a

Browse files
cosminbascatimfel
authored andcommitted
GR-47402: GraalHPyContext fix querying the HPyBackend engine option
1 parent 1720a7d commit 4ff8c5a

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ public GraalHPyContext(PythonContext context, Object hpyLibrary) throws Exceptio
314314
PythonLanguage language = context.getLanguage();
315315
int traceUpcallsInterval = language.getEngineOption(PythonOptions.HPyTraceUpcalls);
316316
Boolean useNativeFastPaths = language.getEngineOption(PythonOptions.HPyEnableJNIFastPaths);
317-
HPyBackendMode backendMode = context.getOption(PythonOptions.HPyBackend);
317+
HPyBackendMode backendMode = language.getEngineOption(PythonOptions.HPyBackend);
318318

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

0 commit comments

Comments
 (0)