diff options
| author | Russ Cox <rsc@golang.org> | 2009-12-07 15:52:14 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-12-07 15:52:14 -0800 |
| commit | aa498194c06df668775ec2a13b9299ae8c0ba1ee (patch) | |
| tree | 2d50fda6b38d1ee21a7869c6bcb8c8ebac0ffaf2 /src/pkg/runtime/mheapmap32.c | |
| parent | 2f60e7196845b32ec04e8428367562e0155dee78 (diff) | |
| download | golang-aa498194c06df668775ec2a13b9299ae8c0ba1ee.tar.gz | |
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
Diffstat (limited to 'src/pkg/runtime/mheapmap32.c')
| -rw-r--r-- | src/pkg/runtime/mheapmap32.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; } |
