]> Cypherpunks repositories - gostls13.git/commit
runtime: fix stale comment for mheap/malloc
authorLidong Yan <yldhome2d2@gmail.com>
Fri, 21 Nov 2025 03:14:46 +0000 (11:14 +0800)
committerKeith Randall <khr@golang.org>
Sun, 23 Nov 2025 17:07:32 +0000 (09:07 -0800)
commite88be8a128d167c5ab91eabc998ab364370c702e
tree15a8f3448352fc27d9a78fcfc445fb7a22492074
parenta318843a2ad17d853b13599a73b2912a13474490
runtime: fix stale comment for mheap/malloc

mheap use pageAlloc to manage free/scav address space instead of
using free/scav treap. The comment on mheap states mheap uses
treaps. Update the comment to reflect the use of pageAlloc.

In the fallback code when sizeSpecializedMalloc is enabled,
heapBitsInSpan is false. Update the comment to reflect that.

Change-Id: I50d2993c84e2c0312a925ab0a33065cc4cd41c41
Reviewed-on: https://go-review.googlesource.com/c/go/+/722700
Reviewed-by: Lidong Yan <yldhome2d2@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Mark Freeman <markfreeman@google.com>
src/runtime/malloc.go
src/runtime/mheap.go