summaryrefslogtreecommitdiff
path: root/alloc.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 /alloc.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 'alloc.c')
-rw-r--r--alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/alloc.c b/alloc.c
index 54e6589a..f7285b95 100644
--- a/alloc.c
+++ b/alloc.c
@@ -1336,7 +1336,7 @@ GC_API void GC_CALL GC_gcollect_and_unmap(void)
#endif
/* Use the chunk of memory starting at p of size bytes as part of the heap. */
-/* Assumes p is HBLKSIZE aligned, and bytes is a multiple of HBLKSIZE. */
+/* Assumes p is HBLKSIZE aligned, bytes argument is a multiple of HBLKSIZE. */
STATIC void GC_add_to_heap(struct hblk *p, size_t bytes)
{
hdr * phdr;
@@ -1598,7 +1598,7 @@ GC_INNER GC_bool GC_expand_hp_inner(word n)
}
/* Really returns a bool, but it's externally visible, so that's clumsy. */
-/* Arguments is in bytes. Includes GC_init() call. */
+/* The argument is in bytes. Includes GC_init() call. */
GC_API int GC_CALL GC_expand_hp(size_t bytes)
{
int result;