summaryrefslogtreecommitdiff
path: root/src/runtime/runtime.h
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
commitc1b08d0dc7c14503a310801b4e48571a735ea718 (patch)
tree716e6b85c74f50ceb20e1aa0bd630654b5c13e17 /src/runtime/runtime.h
parent1bb0156bec3e5202ee0259e5c049c85ee076c669 (diff)
downloadgo-c1b08d0dc7c14503a310801b4e48571a735ea718.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/runtime/runtime.h')
-rw-r--r--src/runtime/runtime.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h
index 170657d86..5552c9e94 100644
--- a/src/runtime/runtime.h
+++ b/src/runtime/runtime.h
@@ -162,6 +162,7 @@ struct M
int32 siz2;
int32 id;
int32 mallocing;
+ int32 locks;
Note havenextg;
G* nextg;
M* schedlink;
@@ -304,6 +305,9 @@ bool ifaceeq(Iface, Iface);
uint64 ifacehash(Iface);
uint64 nohash(uint32, void*);
uint32 noequal(uint32, void*, void*);
+void* malloc(uintptr size);
+void* mallocgc(uintptr size);
+void free(void *v);
#pragma varargck argpos printf 1