summaryrefslogtreecommitdiff
path: root/obj_map.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-02-23 17:43:57 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-02-23 17:43:57 +0300
commit70f9e78d289a4a757093dc48ca6d08ca1b174f81 (patch)
tree1b8223ac9a23a996b488dcf50038b4996571227d /obj_map.c
parent0ffae8f53ab4974ce5830d4ad38b66eceafa2bd0 (diff)
downloadbdwgc-70f9e78d289a4a757093dc48ca6d08ca1b174f81.tar.gz
Fix comments to disambiguate plural nouns followed by 'is'
* alloc.c (GC_add_to_heap): Change "bytes is" to "bytes argument is" in comment. * alloc.c (GC_expand_hp): Fix typo ("argument is") in comment. * include/gc/gc_inline.h (GC_FAST_MALLOC_GRANS): Change "granules is" to "granules argument is" in comment. * include/private/gcconfig.h [LINUX && REDIRECT_MALLOC]: Change "Linux threads is itself" to "Linux threads implementation itself is". * malloc.c (GC_alloc_large): Change "Flags is" to "flags argument should be" in comment. * include/private/gc_priv.h (GC_alloc_large): Likewise. * malloc.c (GC_alloc_large): Change "EXTRA_BYTES were" to "EXTRA_BYTES value was" in comment. * obj_map.c [MARK_BIT_PER_GRANULE] (GC_add_map_entry): Change "0 granules is" to "0 is" in comment.
Diffstat (limited to 'obj_map.c')
-rw-r--r--obj_map.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/obj_map.c b/obj_map.c
index 9dd24059..8c7c1d57 100644
--- a/obj_map.c
+++ b/obj_map.c
@@ -47,8 +47,7 @@ GC_INNER void GC_register_displacement_inner(size_t offset)
#ifdef MARK_BIT_PER_GRANULE
/* Add a heap block map for objects of size granules to obj_map. */
- /* Return FALSE on failure. */
- /* A size of 0 granules is used for large objects. */
+ /* A size of 0 is used for large objects. Return FALSE on failure. */
GC_INNER GC_bool GC_add_map_entry(size_t granules)
{
unsigned displ;