mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
vm_backtrace.c: ignore ifunc frames
* vm_backtrace.c (rb_profile_frames): ignore ifunc frames as it did before. [ruby-core:72409] [Bug #11851] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8ec531ba9c
commit
cc52f511b1
3 changed files with 27 additions and 5 deletions
|
@ -102,4 +102,21 @@ class TestProfileFrames < Test::Unit::TestCase
|
|||
end
|
||||
}
|
||||
end
|
||||
|
||||
def test_ifunc_frame
|
||||
bug11851 = '[ruby-core:72409] [Bug #11851]'
|
||||
assert_ruby_status([], <<~'end;', bug11851) # do
|
||||
require '-test-/debug'
|
||||
class A
|
||||
include Bug::Debug
|
||||
def x
|
||||
profile_frames(0, 10)
|
||||
end
|
||||
end
|
||||
def a
|
||||
[A.new].each(&:x)
|
||||
end
|
||||
a
|
||||
end;
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue