Skip to content

Commit 8cf535d

Browse files
committed
Removing new occurrence of PythonLanguage.getCurrent()
1 parent c259da9 commit 8cf535d

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
@@ -1110,7 +1110,7 @@ final void toNative() {
11101110
if (!isPointer()) {
11111111
CompilerDirectives.transferToInterpreter();
11121112
nativePointer = PCallHPyFunctionNodeGen.getUncached().call(this, GRAAL_HPY_CONTEXT_TO_NATIVE, this, new GraalHPyJNIContext(this));
1113-
PythonLanguage language = PythonLanguage.getCurrent();
1113+
PythonLanguage language = PythonLanguage.get(null);
11141114
if (language.getEngineOption(PythonOptions.HPyBackend) == HPyBackendMode.JNI) {
11151115
loadJNIBackend();
11161116
if (initJNI(this, castLong(nativePointer)) != 0) {

0 commit comments

Comments
 (0)