Skip to content

Commit a439f91

Browse files
author
Adam Hrbac
committed
Use PythonLanguage.get(this) over context.getLanguage()
1 parent fb5d9cc commit a439f91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/bytecode/PBytecodeRootNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ private Object bytecodeLoop(VirtualFrame virtualFrame, Frame localFrame, Bytecod
10691069
}
10701070

10711071
final PythonContext context = PythonContext.get(this);
1072-
final PythonContext.PythonThreadState threadState = context.getThreadState(context.getLanguage());
1072+
final PythonContext.PythonThreadState threadState = context.getThreadState(PythonLanguage.get(this));
10731073

10741074
/*
10751075
* We use an object as a workaround for not being able to specify which local variables are

0 commit comments

Comments
 (0)