Skip to content

Commit c3db7c6

Browse files
committed
Fixed uncached IndirectCallData
1 parent 4a2aeca commit c3db7c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/IndirectCallData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ public final class IndirectCallData {
5959

6060
private IndirectCallData() {
6161
this.nodeRef = new TruffleWeakReference<>(null);
62+
nativeCodeDoesntNeedMyFrame = Assumption.ALWAYS_VALID;
63+
nativeCodeDoesntNeedExceptionState = Assumption.ALWAYS_VALID;
6264
}
6365

6466
public IndirectCallData(Node node) {
@@ -124,7 +126,6 @@ public static void setEncapsulatingNeedsToPassExceptionState(Node callNode) {
124126
}
125127

126128
private Assumption needNotPassFrameAssumption() {
127-
assert !isUncached();
128129
if (nativeCodeDoesntNeedMyFrame == null) {
129130
CompilerDirectives.transferToInterpreterAndInvalidate();
130131
nativeCodeDoesntNeedMyFrame = Truffle.getRuntime().createAssumption();
@@ -133,7 +134,6 @@ private Assumption needNotPassFrameAssumption() {
133134
}
134135

135136
private Assumption needNotPassExceptionAssumption() {
136-
assert !isUncached();
137137
if (nativeCodeDoesntNeedExceptionState == null) {
138138
CompilerDirectives.transferToInterpreterAndInvalidate();
139139
nativeCodeDoesntNeedExceptionState = Truffle.getRuntime().createAssumption();

0 commit comments

Comments
 (0)