Commit b0e4c91
committed
MRI backtrace should not include native lines
At some point, we started including native .java lines in the MRI-
formatted trace. This was probably unintended, since MRI-format
traces should always follow CRuby's standard of replacing native
call frames with the most recent Ruby frame.
See #9154 for some discussion of filtering and omitting
internal frames (that PR is about Ruby, but the same filtering
already applied to native frames used in `caller`).
This patch uses the same backtrace gathering logic for the MRI
format as it does for `caller`, since in both cases users expect
not to see .java frames for internal methods, and now with Ruby 4.0
they will also expect not to see internal Ruby sources.1 parent 9eae064 commit b0e4c91
File tree
1 file changed
+2
-2
lines changed- core/src/main/java/org/jruby/runtime/backtrace
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
0 commit comments