diff options
author | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-04 08:34:20 +0000 |
---|---|---|
committer | nari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-04 08:34:20 +0000 |
commit | 2f9f17ac98597d54aa241a6ccea5b458c2759d7a (patch) | |
tree | d591bcd6606326cd365b23a7ee5015cb7ecad210 /gc.c | |
parent | 6aa2aabd8b8c948d1f9eb2fb367ef24a24f237ce (diff) | |
download | ruby-2f9f17ac98597d54aa241a6ccea5b458c2759d7a.tar.gz |
* gc.c (rb_objspace_call_finalizer): call gc_mark_stacked_objects
at suitable point.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1484,9 +1484,6 @@ rb_objspace_call_finalizer(rb_objspace_t *objspace) RVALUE *final_list = 0; size_t i; - mark_tbl(objspace, finalizer_table); - gc_mark_stacked_objects(objspace); - /* run finalizers */ rest_sweep(objspace); @@ -1497,6 +1494,7 @@ rb_objspace_call_finalizer(rb_objspace_t *objspace) /* because mark will not be removed */ finalize_deferred(objspace); mark_tbl(objspace, finalizer_table); + gc_mark_stacked_objects(objspace); st_foreach(finalizer_table, chain_finalized_object, (st_data_t)&deferred_final_list); } while (deferred_final_list); |