2008-12-05 16:24:18 -07:00
|
|
|
// 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"
|
2009-03-30 01:01:07 -06:00
|
|
|
#include "defs.h"
|
2008-12-05 16:24:18 -07:00
|
|
|
|
|
|
|
// Stubs for memory management.
|
|
|
|
// In a separate file so they can be overridden during testing of gc.
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
NHUNK = 20<<20,
|
|
|
|
};
|
|
|
|
|
|
|
|
void
|
2009-10-16 00:10:49 -06:00
|
|
|
runtime·mal(uint32 n, uint8 *ret)
|
2008-12-05 16:24:18 -07:00
|
|
|
{
|
|
|
|
ret = mal(n);
|
|
|
|
FLUSH(&ret);
|
|
|
|
}
|