aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/malloc.goc
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2013-01-26 09:57:06 +0800
committerShenghou Ma <minux.ma@gmail.com>2013-01-26 09:57:06 +0800
commit4019d0e4243cea82b033e12da75d49f82419f2cd (patch)
tree0af9218a0f630a87cb5fc5fec84411fbd8b4cdc3 /src/pkg/runtime/malloc.goc
parent5a49acc72fd41a8a9b02ac9f4e4c9c41d1bf8c42 (diff)
downloadgo-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/malloc.goc')
-rw-r--r--src/pkg/runtime/malloc.goc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/runtime/malloc.goc b/src/pkg/runtime/malloc.goc
index f437c0e3f0..ad3ad5e7db 100644
--- a/src/pkg/runtime/malloc.goc
+++ b/src/pkg/runtime/malloc.goc
@@ -19,6 +19,8 @@ package runtime
#pragma dataflag 16 /* mark mheap as 'no pointers', hiding from garbage collector */
MHeap runtime·mheap;
+int32 runtime·checking;
+
extern MStats mstats; // defined in zruntime_def_$GOOS_$GOARCH.go
extern volatile intgo runtime·MemProfileRate;