comment ggc_handle_finalizers

* ggc-page.c (ggc_handle_finalizers): Add comment.

From-SVN: r210569
This commit is contained in:
Trevor Saunders 2014-05-17 23:15:55 +00:00 committed by Trevor Saunders
parent de49ce19cc
commit c3af645c4c
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
* ggc-page.c (ggc_handle_finalizers): Add comment.
2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
* ggc-common.c (ggc_internal_cleared_alloc): Adjust.

View File

@ -1859,6 +1859,11 @@ clear_marks (void)
}
}
/* Check if any blocks with a registered finalizer have become unmarked. If so
run the finalizer and unregister it because the block is about to be freed.
Note that no garantee is made about what order finalizers will run in so
touching other objects in gc memory is extremely unwise. */
static void
ggc_handle_finalizers ()
{