mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/-test-/tracepoint/tracepoint.c (Init_tracepoint): prevent from GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3557a5f85e
commit
d2f4e701f8
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Sun Sep 22 20:35:38 2013 Kazuki Tsujimoto <kazuki@callcc.net>
|
||||
|
||||
* ext/-test-/tracepoint/tracepoint.c (Init_tracepoint): prevent from GC.
|
||||
|
||||
Sun Sep 22 19:00:28 2013 Benoit Daloze <eregontp@gmail.com>
|
||||
|
||||
* benchmark/bm_app_answer.rb: revert r42990, benchmark scripts should
|
||||
|
|
|
@ -69,6 +69,10 @@ tracepoint_track_objspace_events(VALUE self)
|
|||
void
|
||||
Init_tracepoint(void)
|
||||
{
|
||||
size_t i;
|
||||
VALUE mBug = rb_define_module("Bug");
|
||||
rb_define_module_function(mBug, "tracepoint_track_objspace_events", tracepoint_track_objspace_events, 0);
|
||||
for (i=0; i<sizeof(objects)/sizeof(VALUE); i++) {
|
||||
rb_global_variable(objects+i);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue