summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-04 08:34:20 +0000
committernari <nari@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-04 08:34:20 +0000
commit2f9f17ac98597d54aa241a6ccea5b458c2759d7a (patch)
treed591bcd6606326cd365b23a7ee5015cb7ecad210 /gc.c
parent6aa2aabd8b8c948d1f9eb2fb367ef24a24f237ce (diff)
downloadruby-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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gc.c b/gc.c
index 661f48d008..5d0c1befd6 100644
--- a/gc.c
+++ b/gc.c
@@ -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);