We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee46560 commit b6b7617Copy full SHA for b6b7617
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/PBaseNode.java
@@ -60,7 +60,11 @@ public abstract class PBaseNode extends Node {
60
@CompilationFinal private ContextReference<PythonContext> contextRef;
61
62
protected final PythonObjectFactory factory() {
63
- return getCore().factory();
+ if (factory == null) {
64
+ CompilerDirectives.transferToInterpreterAndInvalidate();
65
+ factory = insert(PythonObjectFactory.create());
66
+ }
67
+ return factory;
68
}
69
70
public final PythonCore getCore() {
0 commit comments