Skip to content

Commit 53b1a2e

Browse files
committed
[GR-46797] Workaround Truffle DSL bug
1 parent 4aeeba7 commit 53b1a2e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/org/truffleruby/cext/CExtNodes.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,8 @@ protected int extractRubyTag(CapturedException captured,
15401540
@GenerateCached(false)
15411541
public abstract static class ExtractRubyTagHelperNode extends RubyBaseNode {
15421542

1543-
public abstract int execute(Node node, Throwable e);
1543+
// Object instead of Throwable to workaround Truffle DSL bug GR-46797
1544+
public abstract int execute(Node node, Object e);
15441545

15451546
@Specialization
15461547
protected static int dynamicReturnTag(DynamicReturnException e) {
@@ -1582,8 +1583,9 @@ protected static int throwTag(ThrowException e) {
15821583
return RUBY_TAG_THROW;
15831584
}
15841585

1586+
// Object instead of Throwable to workaround Truffle DSL bug GR-46797
15851587
@Fallback
1586-
protected static int noTag(Throwable e) {
1588+
protected static int noTag(Object e) {
15871589
return 0;
15881590
}
15891591
}

0 commit comments

Comments
 (0)