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 /include | |
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 'include')
-rw-r--r-- | include/gc/gc_inline.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/gc/gc_inline.h b/include/gc/gc_inline.h index 770bfa09..824efd50 100644 --- a/include/gc/gc_inline.h +++ b/include/gc/gc_inline.h @@ -201,8 +201,9 @@ GC_API GC_ATTR_MALLOC GC_ATTR_ALLOC_SIZE(1) void * GC_CALL } \ } while (0) -/* Print address of each object in the free list. */ -/* Defined only if the library has been compiled without NO_DEBUGGING. */ +/* Print address of each object in the free list. The caller should */ +/* hold the GC lock. Defined only if the library has been compiled */ +/* without NO_DEBUGGING. */ GC_API void GC_CALL GC_print_free_list(int /* kind */, size_t /* sz_in_granules */); |