summaryrefslogtreecommitdiff
path: root/ext/objspace
diff options
context:
space:
mode:
authortmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-05 04:26:04 +0000
committertmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-05 04:26:04 +0000
commit393b9e65e91036743609e0d5ed899072b0f2d0a8 (patch)
tree0d8d8c358b852e73e3f9dcd9eeefb057c4cd36bc /ext/objspace
parentfb29aefc7abe3fe1b2c7794035a73f9ba50e8364 (diff)
gc.c: split GC_END event into GC_END_MARK and GC_END_SWEEP
* include/ruby/ruby.h: remove INTERNAL_EVENT_GC_END and replace with two new events: GC_END_MARK and GC_END_SWEEP * gc.c (gc_after_sweep): emit GC_END_SWEEP after lazy sweep is done * gc.c (gc_marks_body): emit GC_END_MARK at end of minor/major mark * ext/-test-/tracepoint/tracepoint.c (struct tracepoint_track): tests for new events. * test/-ext-/tracepoint/test_tracepoint.rb (class TestTracepointObj): ditto. * NEWS: remove ObjectSpace.after_gc_*_hook. These are only a sample, and will be removed before ruby 2.1. * ext/objspace/gc_hook.c: remove ObjectSpace.after_gc_end_hook= git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/objspace')
-rw-r--r--ext/objspace/gc_hook.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/ext/objspace/gc_hook.c b/ext/objspace/gc_hook.c
index cf3dc0c..eb6ac74 100644
--- a/ext/objspace/gc_hook.c
+++ b/ext/objspace/gc_hook.c
@@ -88,16 +88,8 @@ set_after_gc_start(VALUE rb_mObjSpace, VALUE proc)
"__set_after_gc_start_tpval__", "__set_after_gc_start_proc__");
}
-static VALUE
-set_after_gc_end(VALUE rb_mObjSpace, VALUE proc)
-{
- return set_gc_hook(rb_mObjSpace, proc, RUBY_INTERNAL_EVENT_GC_END,
- "__set_after_gc_end_tpval__", "__set_after_gc_end_proc__");
-}
-
void
Init_gc_hook(VALUE rb_mObjSpace)
{
rb_define_module_function(rb_mObjSpace, "after_gc_start_hook=", set_after_gc_start, 1);
- rb_define_module_function(rb_mObjSpace, "after_gc_end_hook=", set_after_gc_end, 1);
}