2008-12-18 16:42:28 -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.
|
|
|
|
|
|
|
|
// Go declarations for malloc.
|
|
|
|
// The actual functions are written in C
|
|
|
|
// and part of the runtime library.
|
|
|
|
|
|
|
|
package malloc
|
|
|
|
|
2009-01-20 15:40:40 -07:00
|
|
|
type Stats struct {
|
2009-01-16 17:12:14 -07:00
|
|
|
Alloc uint64;
|
|
|
|
Sys uint64;
|
2009-01-26 18:37:05 -07:00
|
|
|
Stacks uint64;
|
|
|
|
InusePages uint64;
|
|
|
|
NextGC uint64;
|
|
|
|
EnableGC bool;
|
|
|
|
}
|
2008-12-18 16:42:28 -07:00
|
|
|
|
2009-06-05 11:59:37 -06:00
|
|
|
func Alloc(uintptr) *byte
|
2009-01-26 18:37:05 -07:00
|
|
|
func Free(*byte)
|
|
|
|
func GetStats() *Stats
|
|
|
|
func Lookup(*byte) (*byte, uintptr)
|
|
|
|
func GC()
|