summaryrefslogtreecommitdiff
path: root/src/lib/malloc.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-01-26 17:37:05 -0800
committerRuss Cox <rsc@golang.org>2009-01-26 17:37:05 -0800
commit3b2ef42e707bf994b78bae3f56c1d703fe62c1e4 (patch)
tree716e6b85c74f50ceb20e1aa0bd630654b5c13e17 /src/lib/malloc.go
parent4bc3343d0db203003906c9a1fc8d0cdc43e1442d (diff)
downloadgolang-3b2ef42e707bf994b78bae3f56c1d703fe62c1e4.tar.gz
gc #0. mark and sweep collector.
R=r,gri DELTA=472 (423 added, 2 deleted, 47 changed) OCL=23522 CL=23541
Diffstat (limited to 'src/lib/malloc.go')
-rw-r--r--src/lib/malloc.go15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/lib/malloc.go b/src/lib/malloc.go
index e3896e94f..8e4397a0b 100644
--- a/src/lib/malloc.go
+++ b/src/lib/malloc.go
@@ -11,9 +11,14 @@ package malloc
type Stats struct {
Alloc uint64;
Sys uint64;
-};
+ Stacks uint64;
+ InusePages uint64;
+ NextGC uint64;
+ EnableGC bool;
+}
-func Alloc(uint64) *byte;
-func Free(*byte);
-func GetStats() *Stats;
-func Lookup(*byte) (*byte, uintptr);
+func Alloc(uint64) *byte
+func Free(*byte)
+func GetStats() *Stats
+func Lookup(*byte) (*byte, uintptr)
+func GC()