diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2014-08-05 17:03:06 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2014-08-05 17:03:06 +0400 |
| commit | 3950655bb567a3c3445ee7b952beff0f9c3a9b1b (patch) | |
| tree | 17512995ad4cf5a28b9aeac82bba0ee46700f6a4 /src/pkg/runtime | |
| parent | ab5d105ba99e72a4f04c80df3c81725fa18527c7 (diff) | |
| download | go-3950655bb567a3c3445ee7b952beff0f9c3a9b1b.tar.xz | |
runtime: remove outdated comment
LGTM=bradfitz, khr
R=khr, bradfitz
CC=golang-codereviews
https://golang.org/cl/120400043
Diffstat (limited to 'src/pkg/runtime')
| -rw-r--r-- | src/pkg/runtime/malloc.go | 5 |
1 files 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) |
