aboutsummaryrefslogtreecommitdiff
path: root/gcc/ggc-page.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ggc-page.c')
-rw-r--r--gcc/ggc-page.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c
index b3a1a2a..a8d8d0e 100644
--- a/gcc/ggc-page.c
+++ b/gcc/ggc-page.c
@@ -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 ()
{