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 49fe912 commit 9d07625Copy full SHA for 9d07625
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/str/StringBuiltins.java
@@ -1669,11 +1669,12 @@ public String doTitle(String self) {
1669
@TypeSystemReference(PythonArithmeticTypes.class)
1670
abstract static class CenterNode extends PythonBuiltinNode {
1671
1672
- protected CastToIndexNode toIndexNode;
+ private @Child CastToIndexNode toIndexNode;
1673
1674
private CastToIndexNode getCastToIndexNode() {
1675
if (toIndexNode == null) {
1676
- toIndexNode = CastToIndexNode.createOverflow();
+ CompilerDirectives.transferToInterpreterAndInvalidate();
1677
+ toIndexNode = insert(CastToIndexNode.createOverflow());
1678
}
1679
return toIndexNode;
1680
0 commit comments