From 4a513fd3b4a6cd780a7de1f217b64e4f19020ee7 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 3 Dec 2009 17:22:23 -0800 Subject: 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 --- src/pkg/malloc/malloc.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/pkg/malloc/malloc.go') 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; } -- cgit v1.2.3