mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 01:54:00 +02:00
merge revision(s) 44654: [Backport #9426]
tracepoint.c: disable tracepoint * ext/-test-/tracepoint/tracepoint.c (tracepoint_track_objspace_events): ensure tracepoint disabled. [ruby-dev:47901] [Bug #9426] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6770402812
commit
575ff86a4b
2 changed files with 2 additions and 3 deletions
|
@ -64,8 +64,7 @@ tracepoint_track_objspace_events(VALUE self)
|
|||
VALUE result = rb_ary_new();
|
||||
|
||||
rb_tracepoint_enable(tpval);
|
||||
rb_yield(Qundef);
|
||||
rb_tracepoint_disable(tpval);
|
||||
rb_ensure(rb_yield, Qundef, rb_tracepoint_disable, tpval);
|
||||
|
||||
rb_ary_push(result, SIZET2NUM(track.newobj_count));
|
||||
rb_ary_push(result, SIZET2NUM(track.free_count));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue