diff options
| author | Shenghou Ma <minux.ma@gmail.com> | 2013-01-26 09:57:06 +0800 |
|---|---|---|
| committer | Shenghou Ma <minux.ma@gmail.com> | 2013-01-26 09:57:06 +0800 |
| commit | 4019d0e4243cea82b033e12da75d49f82419f2cd (patch) | |
| tree | 0af9218a0f630a87cb5fc5fec84411fbd8b4cdc3 /src/pkg/runtime/proc.c | |
| parent | 5a49acc72fd41a8a9b02ac9f4e4c9c41d1bf8c42 (diff) | |
| download | go-4019d0e4243cea82b033e12da75d49f82419f2cd.tar.xz | |
runtime: avoid defining the same variable in more than one translation unit
For gccgo runtime and Darwin where -fno-common is the default.
R=iant, dave
CC=golang-dev
https://golang.org/cl/7094061
Diffstat (limited to 'src/pkg/runtime/proc.c')
| -rw-r--r-- | src/pkg/runtime/proc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index 5219071b9a..cd66bcecdb 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -24,6 +24,13 @@ static int32 debug = 0; int32 runtime·gcwaiting; +G* runtime·allg; +G* runtime·lastg; +M* runtime·allm; + +int8* runtime·goos; +int32 runtime·ncpu; + // Go scheduler // // The go scheduler's job is to match ready-to-run goroutines (`g's) |
