mirror of
https://github.com/golang/go
synced 2024-11-23 00:30:07 -07:00
3f8aa662e9
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
16 lines
464 B
Go
16 lines
464 B
Go
// 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.
|
|
|
|
package allocator
|
|
|
|
export func free(*byte)
|
|
export func malloc(int) *byte
|
|
export func memset(*byte, int, int)
|
|
export var footprint int64
|
|
export var frozen bool
|
|
export func testsizetoclass()
|
|
export var allocated int64
|
|
export func find(uint64) (obj *byte, size int64, ref *int32, ok bool)
|
|
export func gc()
|