summaryrefslogtreecommitdiff
path: root/src/pkg/malloc/malloc.go
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
commit4a513fd3b4a6cd780a7de1f217b64e4f19020ee7 (patch)
treedb4e0630cae7b1362353ffd8921a0df25b970082 /src/pkg/malloc/malloc.go
parent7b84abbf8b1f77341fabf1bbe88c1b629c9b2165 (diff)
downloadgolang-4a513fd3b4a6cd780a7de1f217b64e4f19020ee7.tar.gz
runtime: malloc fixes
* throw away dead code * add mlookup counter * add malloc counter * set up for blocks with no pointers Fixes issue 367. R=r http://codereview.appspot.com/165050
Diffstat (limited to 'src/pkg/malloc/malloc.go')
-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 66708a680..ba15f04ab 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;
}