Skip to content

Commit 970501c

Browse files
committed
[GR-32011] Enable stacktrace for KillException to help debugging
PullRequest: truffleruby/2719
2 parents 308d7f4 + bae37c1 commit 970501c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/org/truffleruby/core/VMPrimitiveNodes.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ protected Object doCatch(Object tag, RubyProc block,
119119
@Primitive(name = "vm_exit", lowerFixnum = 0)
120120
public abstract static class VMExitNode extends PrimitiveArrayArgumentsNode {
121121

122+
@TruffleBoundary
122123
@Specialization
123124
protected Object vmExit(int status) {
124125
throw new ExitException(status);

src/main/java/org/truffleruby/language/control/TerminationException.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
*/
1010
package org.truffleruby.language.control;
1111

12-
import com.oracle.truffle.api.nodes.ControlFlowException;
13-
14-
public class TerminationException extends ControlFlowException {
12+
public class TerminationException extends RuntimeException {
1513

1614
private static final long serialVersionUID = 2170201891607264355L;
1715

0 commit comments

Comments
 (0)