From 010ab89c3e7ef8ad5def406099f7c9c36e2f4870 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Mon, 10 Apr 2023 23:19:08 +0300 Subject: 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. --- reclaim.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'reclaim.c') 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; -- cgit v1.2.1