From aa498194c06df668775ec2a13b9299ae8c0ba1ee Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 7 Dec 2009 15:52:14 -0800 Subject: runtime: don't touch pages of memory unnecessarily. cuts working size for hello world from 6 MB to 1.2 MB. still some work to be done, but diminishing returns. R=r http://codereview.appspot.com/165080 --- src/pkg/runtime/mheapmap32.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/pkg/runtime/mheapmap32.c') diff --git a/src/pkg/runtime/mheapmap32.c b/src/pkg/runtime/mheapmap32.c index 8cea825c3..13491595d 100644 --- a/src/pkg/runtime/mheapmap32.c +++ b/src/pkg/runtime/mheapmap32.c @@ -84,7 +84,6 @@ MHeapMap_Preallocate(MHeapMap *m, PageID k, uintptr len) p2 = m->allocator(sizeof *p2); if(p2 == nil) return false; - runtime_memclr((byte*)p2, sizeof *p2); m->p[i1] = p2; } -- cgit v1.2.3