aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/slice.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-03-23 20:48:23 -0700
committerRuss Cox <rsc@golang.org>2010-03-23 20:48:23 -0700
commit596c16e0458060aec0c81cccaef3070a1d6daf81 (patch)
treeee543d5e212770ff8586f549e40803c644327594 /src/pkg/runtime/slice.c
parent72bc37c1220088994649bb032316a42d2cd8ece7 (diff)
downloadgo-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.c2
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);