Skip to content

Commit 63fd9a6

Browse files
committed
Fix: don't fail on non-alloc'd handle in universal
1 parent 7839924 commit 63fd9a6

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy/GraalHPyHandle.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,6 @@ public int getIdDebug(GraalHPyContext context) {
121121
}
122122

123123
int getDebugId() {
124-
if (id == UNINITIALIZED) {
125-
throw CompilerDirectives.shouldNotReachHere();
126-
}
127124
if (id >= 0) {
128125
return id;
129126
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy/GraalHPyNodes.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,6 @@ static Object doHandle(@SuppressWarnings("unused") GraalHPyContext hpyContext, G
12821282
static Object doValidHandle(GraalHPyContext hpyContext, GraalHPyHandle handle) {
12831283
if (!handle.isValid()) {
12841284
hpyContext.onInvalidHandle(handle.getDebugId());
1285-
return PNone.NO_VALUE;
12861285
}
12871286
return handle.getDelegate();
12881287
}

0 commit comments

Comments
 (0)