diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2023-04-10 23:19:08 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2023-04-10 23:49:27 +0300 |
commit | 010ab89c3e7ef8ad5def406099f7c9c36e2f4870 (patch) | |
tree | bf1aef5296f2c3b8279fb612ec8e6378fc7468ae /reclaim.c | |
parent | e2b6b8d31a3ded95b1e76ef8eebd0350e2279f10 (diff) | |
download | bdwgc-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |