Skip to content

Improvements to backtrace#5851

Merged
headius merged 1 commit intojruby:masterfrom
headius:backtrace_fixes
Aug 28, 2019
Merged

Improvements to backtrace#5851
headius merged 1 commit intojruby:masterfrom
headius:backtrace_fixes

Conversation

@headius
Copy link
Member

@headius headius commented Aug 28, 2019

This PR includes improvements to how we manage the Ruby backtrace. It will fix #5849 among others.

@headius
Copy link
Member Author

headius commented Aug 28, 2019

The first commit removes backtrace and frame push/pop around loads of Ruby code. Ruby code in all execution modes pushes its own frame and backtrace, so this is unnecessary and messes up backtraces.

The backtrace pushes here are not needed, since the interpreter
pushes its own backtrace (in INTERPRET_ROOT) and AOT code uses
the Java stacktrace.

The frame pushes are moved into the interpreter, since the JIT
does not need them.
@headius headius added this to the JRuby 9.2.9.0 milestone Aug 28, 2019
@headius headius merged commit a4a79cf into jruby:master Aug 28, 2019
@headius headius deleted the backtrace_fixes branch August 28, 2019 20:17
headius added a commit that referenced this pull request Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Top frame from interpreter gets wrong filename

1 participant