aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mem.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-12-19 03:13:39 -0800
committerRuss Cox <rsc@golang.org>2008-12-19 03:13:39 -0800
commitda0a7d7b8f896bc2117ce488c4e245d626ef8aba (patch)
tree9b40150f73466d543e7724ee596fb3c4ef094e72 /src/runtime/mem.c
parentba882f9940361e7f9f969fcc1cc613e735d38191 (diff)
downloadgo-da0a7d7b8f896bc2117ce488c4e245d626ef8aba.tar.xz
malloc bug fixes.
use malloc by default. free stacks. R=r DELTA=424 (333 added, 29 deleted, 62 changed) OCL=21553 CL=21584
Diffstat (limited to 'src/runtime/mem.c')
-rw-r--r--src/runtime/mem.c13
1 files changed, 1 insertions, 12 deletions
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;