From 305eee5831eaef93617c3afc2714b196c4f30b04 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 3 Jan 2023 00:51:53 +0300 Subject: 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"). --- ChangeLog | 2 +- include/private/gc_priv.h | 2 +- 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 */ -- cgit v1.2.1