From 4019d0e4243cea82b033e12da75d49f82419f2cd Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Sat, 26 Jan 2013 09:57:06 +0800 Subject: 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 --- src/pkg/runtime/malloc.goc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/pkg/runtime/malloc.goc') 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; -- cgit v1.3-5-g9baa