From 152d36a79eacce66c65e154a9df28422f69d7f29 Mon Sep 17 00:00:00 2001 From: normal Date: Wed, 3 Jun 2015 20:53:35 +0000 Subject: variable.c: remove generic ivar support for special constants Special constants are all frozen since [Feature #8923] and cannot support ivars. Remove some unused code we had for supporting them. * variable.c (special_generic_ivar): remove flag (givar_i, rb_mark_generic_ivar_tbl): remove functions (rb_free_generic_ivar, rb_ivar_lookup, rb_ivar_delete, generic_ivar_set, rb_ivar_set, rb_ivar_defined, rb_copy_generic_ivar, rb_ivar_foreach, rb_ivar_count, rb_obj_remove_instance_variable): adjust for lack of ivar support in special constants * test/ruby/test_variable.rb: test ivars for special consts * internal.h: remove rb_mark_generic_ivar_tbl decl * gc.c (gc_mark_roots): remove rb_mark_generic_ivar_tbl call git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- gc.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index d7269cf138..cf659ebfd9 100644 --- a/gc.c +++ b/gc.c @@ -4579,10 +4579,6 @@ gc_mark_roots(rb_objspace_t *objspace, const char **categoryp) MARK_CHECKPOINT("global_tbl"); rb_gc_mark_global_tbl(); - /* mark generic instance variables for special constants */ - MARK_CHECKPOINT("generic_ivars"); - rb_mark_generic_ivar_tbl(); - if (stress_to_class) rb_gc_mark(stress_to_class); MARK_CHECKPOINT("finish"); -- cgit v1.2.3