diff options
author | Russ Cox <rsc@golang.org> | 2010-04-09 15:30:40 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-04-09 15:30:40 -0700 |
commit | 79da15518c65196d0a6eb86d682c74161f6e2ef4 (patch) | |
tree | 45108c80c561d126a26fc4ddcd55e275f4e8d8d4 /src/pkg/runtime/mfinal.c | |
parent | d13ec30e1e389fcd90e9d3be49765f49bf791f93 (diff) | |
download | golang-79da15518c65196d0a6eb86d682c74161f6e2ef4.tar.gz |
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
Diffstat (limited to 'src/pkg/runtime/mfinal.c')
-rw-r--r-- | src/pkg/runtime/mfinal.c | 4 |
1 files changed, 2 insertions, 2 deletions
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<fintab.max; i++) { void *k; |