summaryrefslogtreecommitdiff
path: root/reclaim.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2023-04-10 23:19:08 +0300
committerIvan Maidanski <ivmai@mail.ru>2023-04-10 23:49:27 +0300
commit010ab89c3e7ef8ad5def406099f7c9c36e2f4870 (patch)
treebf1aef5296f2c3b8279fb612ec8e6378fc7468ae /reclaim.c
parente2b6b8d31a3ded95b1e76ef8eebd0350e2279f10 (diff)
downloadbdwgc-010ab89c3e7ef8ad5def406099f7c9c36e2f4870.tar.gz
Refine comment of GC_print_free_list regarding GC lock
(documentation) * include/gc/gc_inline.h (GC_print_free_list): Add comment about assumption about the GC lock. * reclaim.c (GC_print_free_list): Likewise.
Diffstat (limited to 'reclaim.c')
-rw-r--r--reclaim.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/reclaim.c b/reclaim.c
index e5e66d74..d66b7e05 100644
--- a/reclaim.c
+++ b/reclaim.c
@@ -589,7 +589,8 @@ void GC_print_block_list(void)
(unsigned long)pstats.total_bytes);
}
-/* Currently for debugger use only: */
+/* Currently for debugger use only. Assumes the allocation lock is */
+/* held but no assertion about it by design. */
GC_API void GC_CALL GC_print_free_list(int kind, size_t sz_in_granules)
{
void *flh_next;