From 3f8aa662e9710f821411dc9c6f0f0be8c756e40d Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 5 Dec 2008 15:24:18 -0800 Subject: 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 --- src/runtime/stack.c | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 src/runtime/stack.c (limited to 'src/runtime/stack.c') 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*) -{ -} -- cgit v1.3-5-g9baa