Skip to content

Commit 4f9b088

Browse files
committed
[GR-24559] Workaround performance regression on SVM in try-except benchmarks
PullRequest: graalpython/1086
2 parents fb39788 + 8ae0e97 commit 4f9b088

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/function/builtins

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/function/builtins/WrapTpNew.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public Object execute(VirtualFrame frame) {
133133
}
134134
NodeFactory<? extends PythonBuiltinBaseNode> factory = ((PBuiltinFunction) builtinProfile.profile(newMethod)).getBuiltinNodeFactory();
135135
if (factory != null) {
136-
if (!factory.getNodeClass().isAssignableFrom(getNode().getClass())) {
136+
if (!factory.getNodeClass().isInstance(getNode())) {
137137
if ((state & IS_UNSAFE_STATE) == 0) {
138138
CompilerDirectives.transferToInterpreterAndInvalidate();
139139
reportPolymorphicSpecialize();

0 commit comments

Comments
 (0)