aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/mfinal.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-04-09 15:30:40 -0700
committerRuss Cox <rsc@golang.org>2010-04-09 15:30:40 -0700
commit6363542695045d39715c3d00a0d4863e6f85ada2 (patch)
tree0c038cd0f1668e510d51195b96ff37adbc4b5e73 /src/pkg/runtime/mfinal.c
parent08852ffe80b30f8c46c7a9b68c56b0dee42584c4 (diff)
downloadgo-6363542695045d39715c3d00a0d4863e6f85ada2.tar.xz
runtime: delete malx, skip_depth argument to malloc
remove internal functions from traces in gopprof instead. R=r CC=golang-dev https://golang.org/cl/855046
Diffstat (limited to 'src/pkg/runtime/mfinal.c')
-rw-r--r--src/pkg/runtime/mfinal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/mfinal.c b/src/pkg/runtime/mfinal.c
index ae737e8da2..03c1e1044f 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;