mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix comments
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4c0f022f45
commit
3376ea81f9
1 changed files with 3 additions and 3 deletions
6
gc.c
6
gc.c
|
@ -1500,15 +1500,15 @@ rb_objspace_call_finalizer(rb_objspace_t *objspace)
|
|||
RVALUE *final_list = 0;
|
||||
size_t i;
|
||||
|
||||
/* run finalizers */
|
||||
rest_sweep(objspace);
|
||||
|
||||
if (ATOMIC_EXCHANGE(finalizing, 1)) return;
|
||||
|
||||
/* run finalizers */
|
||||
do {
|
||||
/* XXX: this loop will make no sense */
|
||||
/* because mark will not be removed */
|
||||
finalize_deferred(objspace);
|
||||
/* mark reachable objects from finalizers */
|
||||
/* They might be not referred from any place here */
|
||||
mark_tbl(objspace, finalizer_table);
|
||||
gc_mark_stacked_objects(objspace);
|
||||
st_foreach(finalizer_table, chain_finalized_object,
|
||||
|
|
Loading…
Add table
Reference in a new issue