Project

General

Profile

Actions

Bug #10922

closed

TracePoint#binding may return nil in Ruby 2.2

Added by ktsj (Kazuki Tsujimoto) about 9 years ago. Updated over 6 years ago.

Status:
Closed
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 1 (0 open1 closed)

Related to Ruby master - Bug #10723: [PERF] bm_tread_create_join 20% slowerClosedakr (Akira Tanaka)Actions
Actions #1

Updated by ktsj (Kazuki Tsujimoto) about 9 years ago

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

Updated by naruse (Yui NARUSE) over 6 years ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0