From 596c16e0458060aec0c81cccaef3070a1d6daf81 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 23 Mar 2010 20:48:23 -0700 Subject: 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 --- src/pkg/runtime/slice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/runtime/slice.c') 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); -- cgit v1.3