From 79e1db2da13b0d9aafe39831bdb0c1b7940aab0c Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 4 Dec 2008 08:30:54 -0800 Subject: add stub routines stackalloc() and stackfree(). run oldstack on g0's stack, just like newstack does, so that oldstack can free the old stack. R=r DELTA=53 (44 added, 0 deleted, 9 changed) OCL=20404 CL=20433 --- src/runtime/stack.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/runtime/stack.c (limited to 'src/runtime/stack.c') diff --git a/src/runtime/stack.c b/src/runtime/stack.c new file mode 100644 index 0000000000..a4eeedc453 --- /dev/null +++ b/src/runtime/stack.c @@ -0,0 +1,19 @@ +// 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