Commit c3af645c by Trevor Saunders Committed by Trevor Saunders

comment ggc_handle_finalizers

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

From-SVN: r210569
parent de49ce19
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.
* ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
(ggc_internal_cleared_alloc): Likewise.
......
......@@ -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 ()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment