aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/malloc
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-12-03 17:22:23 -0800
committerRuss Cox <rsc@golang.org>2009-12-03 17:22:23 -0800
commit7e5055ceea61339e8d91a41986736990b645c34e (patch)
treee7ecf90ed7627f6ff0d0e92e4949d5dd52a33204 /src/pkg/malloc
parent10a349a7c154e4ee4f21a8027a9577f41de5e4f1 (diff)
downloadgo-7e5055ceea61339e8d91a41986736990b645c34e.tar.xz
runtime: malloc fixes
* throw away dead code * add mlookup counter * add malloc counter * set up for blocks with no pointers Fixes #367. R=r https://golang.org/cl/165050
Diffstat (limited to 'src/pkg/malloc')
-rw-r--r--src/pkg/malloc/malloc.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/malloc/malloc.go b/src/pkg/malloc/malloc.go
index 66708a680e..ba15f04ab7 100644
--- a/src/pkg/malloc/malloc.go
+++ b/src/pkg/malloc/malloc.go
@@ -17,6 +17,8 @@ type Stats struct {
Stacks uint64;
InusePages uint64;
NextGC uint64;
+ Lookups uint64;
+ Mallocs uint64;
EnableGC bool;
}