mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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/trunk@44654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a87d83cbd8
commit
41bdefd56f
1 changed files with 1 additions and 2 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…
Reference in a new issue