From 79da15518c65196d0a6eb86d682c74161f6e2ef4 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 9 Apr 2010 15:30:40 -0700 Subject: runtime: delete malx, skip_depth argument to malloc remove internal functions from traces in gopprof instead. R=r CC=golang-dev http://codereview.appspot.com/855046 --- src/pkg/runtime/mfinal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pkg/runtime/mfinal.c') diff --git a/src/pkg/runtime/mfinal.c b/src/pkg/runtime/mfinal.c index ae737e8da..03c1e1044 100644 --- a/src/pkg/runtime/mfinal.c +++ b/src/pkg/runtime/mfinal.c @@ -134,8 +134,8 @@ addfinalizer(void *p, void (*f)(void*), int32 nret) newtab.max *= 3; } - newtab.key = mallocgc(newtab.max*sizeof newtab.key[0], RefNoPointers, 0, 1, 2); - newtab.val = mallocgc(newtab.max*sizeof newtab.val[0], 0, 0, 1, 2); + newtab.key = mallocgc(newtab.max*sizeof newtab.key[0], RefNoPointers, 0, 1); + newtab.val = mallocgc(newtab.max*sizeof newtab.val[0], 0, 0, 1); for(i=0; i