Bug #2610: c-return hooks aren't always there
http://redmine.ruby-lang.org/issues/show/2610

Author: Roger Pack
Status: Open, Priority: Normal
ruby -v: ruby 1.9.2dev (2009-12-31 trunk 26205) [i386-mingw32]

With this snippet:

  [1,2,3].any? {|n| n}

If you set a (c-based) event hook before calling it, you get this output:

c-call   E:/dev/ruby/ruby-prof/test/bad2.rb: 1  Enumerable#any?
c-call   E:/dev/ruby/ruby-prof/test/bad2.rb: 1  Array#each
line     E:/dev/ruby/ruby-prof/test/bad2.rb: 1  Object#(null)
c-return E:/dev/ruby/ruby-prof/test/bad2.rb: 1  Enumerable#any?
...

There is no call for Array#each's return.

Thanks.
-r


----------------------------------------
http://redmine.ruby-lang.org