diff options
| author | Russ Cox <rsc@golang.org> | 2010-03-23 20:48:23 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2010-03-23 20:48:23 -0700 |
| commit | 596c16e0458060aec0c81cccaef3070a1d6daf81 (patch) | |
| tree | ee543d5e212770ff8586f549e40803c644327594 /src/pkg/runtime/slice.c | |
| parent | 72bc37c1220088994649bb032316a42d2cd8ece7 (diff) | |
| download | go-596c16e0458060aec0c81cccaef3070a1d6daf81.tar.xz | |
runtime: add memory profiling, disabled.
no way to get the data out yet.
add prototype for runtime.Callers,
missing from last CL.
R=r
CC=golang-dev
https://golang.org/cl/713041
Diffstat (limited to 'src/pkg/runtime/slice.c')
| -rw-r--r-- | src/pkg/runtime/slice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/slice.c b/src/pkg/runtime/slice.c index 4ee5fc51f5..03572e822b 100644 --- a/src/pkg/runtime/slice.c +++ b/src/pkg/runtime/slice.c @@ -23,7 +23,7 @@ void ret.cap = cap; if((t->elem->kind&KindNoPointers)) - ret.array = mallocgc(size, RefNoPointers, 1, 1); + ret.array = mallocgc(size, RefNoPointers, 1, 1, 1); else ret.array = mal(size); |
