summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-01-09 09:47:45 -0800
committerRuss Cox <rsc@golang.org>2010-01-09 09:47:45 -0800
commit2db08122e36c137a36ab9768ffceae332c1695f1 (patch)
tree95bbb1afaaaabb0ad3401feb03cc930f8f9bd2d8 /src/pkg/runtime/runtime.h
parent0ba4fada5796425dc0afa524f2537f4f6263e8da (diff)
downloadgolang-2db08122e36c137a36ab9768ffceae332c1695f1.tar.gz
runtime: check for preemption due to garbage collection
in various already expensive routines. helps keep cpu utilization up when GOMAXPROCS > 1, but not a full solution. http://groups.google.com/group/golang-nuts/t/7a9535c4136d3e2 R=r CC=golang-dev http://codereview.appspot.com/184043
Diffstat (limited to 'src/pkg/runtime/runtime.h')
-rw-r--r--src/pkg/runtime/runtime.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h
index 2d956ea98..ff0eab6b7 100644
--- a/src/pkg/runtime/runtime.h
+++ b/src/pkg/runtime/runtime.h
@@ -316,6 +316,7 @@ extern int32 gomaxprocs;
extern int32 panicking;
extern int32 maxround;
extern int32 fd; // usually 1; set to 2 when panicking
+extern int32 gcwaiting; // gc is waiting to run
int8* goos;
/*