summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2021-09-26 11:22:39 +0300
committerIvan Maidanski <ivmai@mail.ru>2021-09-26 14:19:35 +0300
commitf4fcd50b0c4459f31cbac6eda9c5919f624d10d0 (patch)
treeab839a06ce3c9ce95601e6363c331aabf19318ac
parent63a085b04a73ee779ddbeb6bd8e8c1ce7256b5fe (diff)
downloadbdwgc-f4fcd50b0c4459f31cbac6eda9c5919f624d10d0.tar.gz
Update comment in add_to_heap about recompute of GC_collect_at_heapsize
(fix of commit 7dd88d301) * alloc.c (GC_add_to_heap): Update comment (refer to GC_scratch_recycle_inner instead of alloc_mark_stack).
-rw-r--r--alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/alloc.c b/alloc.c
index 2d4c3740..43289c59 100644
--- a/alloc.c
+++ b/alloc.c
@@ -1438,7 +1438,7 @@ STATIC void GC_add_to_heap(struct hblk *p, size_t bytes)
GC_heapsize += bytes;
/* Normally the caller calculates a new GC_collect_at_heapsize,
- * but this is also called directly from alloc_mark_stack, so
+ * but this is also called directly from GC_scratch_recycle_inner, so
* adjust here. It will be recalculated when called from
* GC_expand_hp_inner.
*/