Commit 3950655b authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

runtime: remove outdated comment

LGTM=bradfitz, khr
R=khr, bradfitz
CC=golang-codereviews
https://golang.org/cl/120400043
parent ab5d105b
...@@ -38,10 +38,9 @@ var zeroObject byte ...@@ -38,10 +38,9 @@ var zeroObject byte
// Maximum possible heap size. // Maximum possible heap size.
var maxMem uintptr var maxMem uintptr
// Allocate an object of at least size bytes. // Allocate an object of size bytes.
// Small objects are allocated from the per-thread cache's free lists. // Small objects are allocated from the per-P cache's free lists.
// Large objects (> 32 kB) are allocated straight from the heap. // 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 { func gomallocgc(size uintptr, typ *_type, flags int) unsafe.Pointer {
if size == 0 { if size == 0 {
return unsafe.Pointer(&zeroObject) return unsafe.Pointer(&zeroObject)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment