summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2023-01-03 00:51:53 +0300
committerIvan Maidanski <ivmai@mail.ru>2023-03-14 11:32:11 +0300
commit305eee5831eaef93617c3afc2714b196c4f30b04 (patch)
tree01a59418c26f0a070cbd8b95a63256aa2b6481c9
parent057c9072adb4aa6212a01260b4f601e99f40dff4 (diff)
downloadbdwgc-305eee5831eaef93617c3afc2714b196c4f30b04.tar.gz
Fix typo in GC_allochblk_nth name
(a cherry-pick of commit c716d77bd from 'release-8_2') * ChangeLog: Fix typo ("GC_allochblk_nth"). * include/private/gc_priv.h (GC_alloc_large): Fix typo in comment ("GC_allochblk_nth").
-rw-r--r--ChangeLog2
-rw-r--r--include/private/gc_priv.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 45910a23..a2bb3c4b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7117,7 +7117,7 @@ parameters; return free list index bound.
(GC_merge_unmapped): Don't access nexthdr until after null test.
(Fixes bug in 1/29/08 check-in.) (GC_allochblk): Calculate
when splitting is allowable only once here, not when considering each
-block. (GC_allchblk_nth): Accept new may_split parameter.
+block. (GC_allochblk_nth): Accept new may_split parameter.
Avoid some redundant tests for exact size matches.
* alloc.c (GC_should_collect): Cache min_bytes_allocd.
(GC_maybe_gc): Make locking assertion testable.
diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h
index 187e961b..7e3d0bd8 100644
--- a/include/private/gc_priv.h
+++ b/include/private/gc_priv.h
@@ -1917,7 +1917,7 @@ GC_INNER ptr_t GC_alloc_large(size_t lb, int k, unsigned flags);
/* Allocate a large block of size lb bytes. */
/* The block is not cleared. */
/* Flags is 0 or IGNORE_OFF_PAGE. */
- /* Calls GC_allchblk to do the actual */
+ /* Calls GC_allochblk to do the actual */
/* allocation, but also triggers GC and/or */
/* heap expansion as appropriate. */
/* Does not update GC_bytes_allocd, but does */