From 3950655bb567a3c3445ee7b952beff0f9c3a9b1b Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Tue, 5 Aug 2014 17:03:06 +0400 Subject: [PATCH] runtime: remove outdated comment LGTM=bradfitz, khr R=khr, bradfitz CC=golang-codereviews https://golang.org/cl/120400043 --- src/pkg/runtime/malloc.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pkg/runtime/malloc.go b/src/pkg/runtime/malloc.go index 255778bd2f..dedcea94a6 100644 --- a/src/pkg/runtime/malloc.go +++ b/src/pkg/runtime/malloc.go @@ -38,10 +38,9 @@ var zeroObject byte // Maximum possible heap size. var maxMem uintptr -// Allocate an object of at least size bytes. -// Small objects are allocated from the per-thread cache's free lists. +// Allocate an object of size bytes. +// Small objects are allocated from the per-P cache's free lists. // Large objects (> 32 kB) are allocated straight from the heap. -// If the block will be freed with runtime·free(), typ must be nil. func gomallocgc(size uintptr, typ *_type, flags int) unsafe.Pointer { if size == 0 { return unsafe.Pointer(&zeroObject) -- 2.48.1