diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-11 17:33:44 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-11 17:33:44 +0000 |
commit | 7aecb95637e222bcc46453059a8b306e9197b063 (patch) | |
tree | 29117cd9a569bf22a817fcbba1af9bd1222a8748 /gc.c | |
parent | 588586d9d4a15fdf982291eb59484fd6f7273417 (diff) | |
download | ruby-7aecb95637e222bcc46453059a8b306e9197b063.tar.gz |
* class.c, variable.c, gc.c (rb_class_tbl): removed.
rb_class_tbl is no longer used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -535,7 +535,6 @@ VALUE *ruby_initial_gc_stress_ptr = &rb_objspace.gc_stress; int ruby_gc_debug_indent = 0; VALUE rb_mGC; -extern st_table *rb_class_tbl; int ruby_disable_gc_stress = 0; void rb_gcdebug_print_obj_condition(VALUE obj); @@ -3574,13 +3573,18 @@ gc_marks_body(rb_objspace_t *objspace, int full_mark) th->vm->self ? rb_gc_mark(th->vm->self) : rb_vm_mark(th->vm); MARK_CHECKPOINT; - mark_tbl(objspace, finalizer_table); + rb_gc_mark(rb_cObject); MARK_CHECKPOINT; mark_current_machine_context(objspace, th); MARK_CHECKPOINT; + mark_tbl(objspace, finalizer_table); + + MARK_CHECKPOINT; + objspace->rgengc.parent_object_is_promoted = TRUE; rb_gc_mark_symbols(full_mark); + objspace->rgengc.parent_object_is_promoted = FALSE; MARK_CHECKPOINT; rb_gc_mark_encodings(); @@ -3597,9 +3601,6 @@ gc_marks_body(rb_objspace_t *objspace, int full_mark) MARK_CHECKPOINT; rb_gc_mark_global_tbl(); - MARK_CHECKPOINT; - mark_tbl(objspace, rb_class_tbl); - /* mark generic instance variables for special constants */ MARK_CHECKPOINT; rb_mark_generic_ivar_tbl(); |