mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 05:25:34 +02: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
|
@ -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…
Add table
Add a link
Reference in a new issue