Project

General

Profile

Bug #10922

TracePoint#binding may return nil in Ruby 2.2

Added by ktsj (Kazuki Tsujimoto) over 4 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 2.2.1p85 (2015-02-26 revision 49761) [x86_64-linux]
[ruby-core:68368]

Description

$ miniruby -ve '
TracePoint.new(:c_return) do |tp|
  p [tp.method_id, tp.binding]
end.enable

Thread.new {}.join
'
ruby 2.2.1p85 (2015-02-26 revision 49761) [x86_64-linux]
[:enable, #<Binding:0x00555555a6ed48>]
[:initialize, #<Binding:0x00555555a6ea78>]
[:new, #<Binding:0x00555555a6e758>]
[:to_s, nil]
[:join, #<Binding:0x00555555a6e5f0>]

According to git bisect, this change is introduced in r47670 and fixed in r49430.


Related issues

Related to Ruby master - Bug #10723: [PERF] bm_tread_create_join 20% slowerClosedActions

History

#1

Updated by ktsj (Kazuki Tsujimoto) over 4 years ago

  • Related to Bug #10723: [PERF] bm_tread_create_join 20% slower added
#2

Updated by naruse (Yui NARUSE) almost 2 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF