summaryrefslogtreecommitdiff
path: root/warning.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2021-12-27 12:52:04 -0800
committerJeremy Evans <code@jeremyevans.net>2022-03-29 18:14:33 -0700
commit9c1d32a7ada794ecd0356d56f7be3cdf3982d8ac (patch)
tree5b7cbe2b28d0c627b19d32108241bfa013670852 /warning.rb
parent6d3f447aecfb56f7d3edbdf9cc68e748e150d7d8 (diff)
downloadruby-9c1d32a7ada794ecd0356d56f7be3cdf3982d8ac.tar.gz
Make TracePoint#enable with block target current thread by default
If TracePoint#enable is passed a block, it previously started the trace on all threads. This changes it to trace only the current thread by default. To limit the scope of the change, the current thread is only used by default if target and target_line are both nil. You can pass target_thread: nil to enable tracing on all threads, to get the previous default behavior. Fixes [Bug #16889]
Diffstat (limited to 'warning.rb')
0 files changed, 0 insertions, 0 deletions