From da0a7d7b8f896bc2117ce488c4e245d626ef8aba Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 19 Dec 2008 03:13:39 -0800 Subject: malloc bug fixes. use malloc by default. free stacks. R=r DELTA=424 (333 added, 29 deleted, 62 changed) OCL=21553 CL=21584 --- src/runtime/mem.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/runtime/mem.c') diff --git a/src/runtime/mem.c b/src/runtime/mem.c index 0db941e81d..8e7a472545 100644 --- a/src/runtime/mem.c +++ b/src/runtime/mem.c @@ -23,17 +23,6 @@ enum MAP_ANON = 0x1000, // not on Linux - TODO(rsc) }; -void* -stackalloc(uint32 n) -{ - return mal(n); -} - -void -stackfree(void*) -{ -} - // Convenient wrapper around mmap. static void* brk(uint32 n) @@ -51,7 +40,7 @@ brk(uint32 n) // right here?" The answer is yes unless we're in the middle of // editing the malloc state in m->mem. void* -mal(uint32 n) +oldmal(uint32 n) { byte* v; -- cgit v1.3