summaryrefslogtreecommitdiff
path: root/src/lib/malloc.go
diff options
context:
space:
mode:
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()