1 /* go-new.c -- the generic go new() function.
3 Copyright 2009 The Go Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style
5 license that can be found in the LICENSE file. */
12 __go_new (size_t size
)
14 return runtime_mallocgc (size
, 0, 1, 1);
18 __go_new_nopointers (size_t size
)
20 return runtime_mallocgc (size
, RefNoPointers
, 1, 1);