Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -50,7 +50,11 @@ public ExceptionTranslatingNode(RubyContext context, SourceSection sourceSection
public Object execute(VirtualFrame frame) {
try {
return child.execute(frame);
} catch (StackOverflowError | TruffleFatalException | ThreadExitException exception) {
} catch (StackOverflowError error) {
// TODO: we might want to do sth smarter here to avoid consuming frames when we are almost out of it.
CompilerDirectives.transferToInterpreter();
throw new RaiseException(translate(error));
} catch (TruffleFatalException | ThreadExitException exception) {
throw exception;
} catch (ControlFlowException exception) {
controlProfile.enter();

0 comments on commit 7a7e323

Please sign in to comment.