aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/stack.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-12-05 15:24:18 -0800
committerRuss Cox <rsc@golang.org>2008-12-05 15:24:18 -0800
commit3f8aa662e9710f821411dc9c6f0f0be8c756e40d (patch)
treeae9d666b764532276b207e1125d30252716ab014 /src/runtime/stack.c
parent73120ee81d2f4755bcbf03ea6b4c127afc141047 (diff)
downloadgo-3f8aa662e9710f821411dc9c6f0f0be8c756e40d.tar.xz
add support for ref counts to memory allocator.
mark and sweep, stop the world garbage collector (intermediate step in the way to ref counting). can run pretty with an explicit gc after each file. R=r DELTA=502 (346 added, 143 deleted, 13 changed) OCL=20630 CL=20635
Diffstat (limited to 'src/runtime/stack.c')
-rw-r--r--src/runtime/stack.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/runtime/stack.c b/src/runtime/stack.c
deleted file mode 100644
index a4eeedc453..0000000000
--- a/src/runtime/stack.c
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright 2009 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-#include "runtime.h"
-
-// Stubs for stack management.
-// In a separate file so they can be overridden during testing of gc.
-
-void*
-stackalloc(uint32 n)
-{
- return mal(n);
-}
-
-void
-stackfree(void*)
-{
-}