aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.h
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2011-08-16 16:53:02 -0400
committerRuss Cox <rsc@golang.org>2011-08-16 16:53:02 -0400
commita2677cf363f9d17b416795c621c6bd7de5dcd642 (patch)
tree919b438578afdce8d26a1e9e1fb2b5328761dd75 /src/pkg/runtime/runtime.h
parent01dd57b3125892e0dc2054436f29cafb38b0a3ef (diff)
downloadgo-a2677cf363f9d17b416795c621c6bd7de5dcd642.tar.xz
runtime: fix GC bitmap corruption
The corruption can occur when GOMAXPROCS is changed from >1 to 1, since GOMAXPROCS=1 does not imply there is only 1 goroutine running, other goroutines can still be not parked after the change. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4873050
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 00be565ce0..3c503e430b 100644
--- a/src/pkg/runtime/runtime.h
+++ b/src/pkg/runtime/runtime.h
@@ -383,6 +383,7 @@ extern String runtime·emptystring;
G* runtime·allg;
M* runtime·allm;
extern int32 runtime·gomaxprocs;
+extern bool runtime·singleproc;
extern uint32 runtime·panicking;
extern int32 runtime·gcwaiting; // gc is waiting to run
int8* runtime·goos;