Skip to content

Commit bd5b5fe

Browse files
committed
cutoff blacklisted method from compilation
1 parent 75b1124 commit bd5b5fe

File tree

1 file changed

+4
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
*/
4141
package com.oracle.graal.python.builtins.objects.cext;
4242

43+
import com.oracle.truffle.api.CompilerDirectives;
4344
import com.oracle.truffle.api.interop.InteropLibrary;
4445
import com.oracle.truffle.api.interop.TruffleObject;
4546
import com.oracle.truffle.api.interop.UnsupportedMessageException;
@@ -116,6 +117,8 @@ boolean isIdentical(Object other, InteropLibrary otherLib,
116117
@SuppressWarnings({"unused", "static-method"})
117118
@ExportMessage
118119
TriState isIdenticalOrUndefined(Object other) {
119-
throw new AssertionError("cannot delegate isIdenticalOrUndefined for null properly");
120+
String msg = "cannot delegate isIdenticalOrUndefined for null properly";
121+
CompilerDirectives.bailout(msg);
122+
throw new AssertionError(msg);
120123
}
121124
}

0 commit comments

Comments
 (0)