summaryrefslogtreecommitdiff
path: root/malloc.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 /malloc.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 'malloc.c')
-rw-r--r--malloc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/malloc.c b/malloc.c
index bfc5e109..13e8f8c5 100644
--- a/malloc.c
+++ b/malloc.c
@@ -34,10 +34,9 @@ STATIC GC_bool GC_alloc_reclaim_list(struct obj_kind *kind)
return TRUE;
}
-/* Allocate a large block of size lb bytes. */
-/* The block is not cleared. */
-/* Flags is 0 or IGNORE_OFF_PAGE. */
-/* EXTRA_BYTES were already added to lb. */
+/* Allocate a large block of size lb bytes. The block is not cleared. */
+/* flags argument should be 0 or IGNORE_OFF_PAGE. EXTRA_BYTES value */
+/* was already added to lb. */
GC_INNER ptr_t GC_alloc_large(size_t lb, int k, unsigned flags)
{
struct hblk * h;