diff options
| author | Russ Cox <rsc@golang.org> | 2010-03-23 20:48:23 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2010-03-23 20:48:23 -0700 |
| commit | 596c16e0458060aec0c81cccaef3070a1d6daf81 (patch) | |
| tree | ee543d5e212770ff8586f549e40803c644327594 /src/pkg/runtime/mfinal.c | |
| parent | 72bc37c1220088994649bb032316a42d2cd8ece7 (diff) | |
| download | go-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/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 53a2a4bbe9..817d987372 100644 --- a/src/pkg/runtime/mfinal.c +++ b/src/pkg/runtime/mfinal.c @@ -133,8 +133,8 @@ addfinalizer(void *p, void (*f)(void*), int32 nret) newtab.max *= 3; } - newtab.key = mallocgc(newtab.max*sizeof newtab.key[0], RefNoPointers, 0, 1); - newtab.val = mallocgc(newtab.max*sizeof newtab.val[0], 0, 0, 1); + 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); for(i=0; i<fintab.max; i++) { void *k; |
