]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove outdated comment
authorDmitriy Vyukov <dvyukov@google.com>
Tue, 5 Aug 2014 13:03:06 +0000 (17:03 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Tue, 5 Aug 2014 13:03:06 +0000 (17:03 +0400)
LGTM=bradfitz, khr
R=khr, bradfitz
CC=golang-codereviews
https://golang.org/cl/120400043

src/pkg/runtime/malloc.go

index 255778bd2fd3c0c58f3a92d4319de57341dbb745..dedcea94a6f12ea54fe6ce567bb2c989772fb9fc 100644 (file)
@@ -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)