diff options
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/malloc.go | 2 | ||||
| -rw-r--r-- | src/runtime/mheap.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go index d49dacaf68..4971e16c6a 100644 --- a/src/runtime/malloc.go +++ b/src/runtime/malloc.go @@ -1169,7 +1169,7 @@ func mallocgc(size uintptr, typ *_type, needzero bool) unsafe.Pointer { var x unsafe.Pointer var elemsize uintptr if sizeSpecializedMallocEnabled { - // we know that heapBitsInSpan is true. + // we know that heapBitsInSpan is false. if size <= maxSmallSize-gc.MallocHeaderSize { if typ == nil || !typ.Pointers() { x, elemsize = mallocgcSmallNoscan(size, typ, needzero) diff --git a/src/runtime/mheap.go b/src/runtime/mheap.go index d2ff063b00..0ccaadc891 100644 --- a/src/runtime/mheap.go +++ b/src/runtime/mheap.go @@ -56,7 +56,7 @@ const ( ) // Main malloc heap. -// The heap itself is the "free" and "scav" treaps, +// The heap use pageAlloc to manage free and scavenged pages, // but all the other global data is here too. // // mheap must not be heap-allocated because it contains mSpanLists, |
