summaryrefslogtreecommitdiff
path: root/src/runtime/mgc0.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-16 10:22:15 -0400
committerRuss Cox <rsc@golang.org>2014-09-16 10:22:15 -0400
commit5819f77545053174374fc02ff3e09b6a6591c22c (patch)
treec7698f0ca27a64cd0de49e36c5d0501ab187ddd7 /src/runtime/mgc0.c
parentf1e298b92fb8286ed1b9aa24f3cdfa5dd9e0841b (diff)
downloadgo-5819f77545053174374fc02ff3e09b6a6591c22c.tar.gz
runtime: remove duplicated Go constants
The C header files are the single point of truth: every C enum constant Foo is available to Go as _Foo. Remove or redirect duplicate Go declarations so they cannot be out of sync. Eventually we will need to put constants in Go, but for now having them be out of sync with C is too risky. These predate the build support for auto-generating Go constants from the C definitions. LGTM=iant R=iant CC=golang-codereviews https://codereview.appspot.com/141510043
Diffstat (limited to 'src/runtime/mgc0.c')
-rw-r--r--src/runtime/mgc0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mgc0.c b/src/runtime/mgc0.c
index 30a8ea2c9..eac6e704b 100644
--- a/src/runtime/mgc0.c
+++ b/src/runtime/mgc0.c
@@ -123,7 +123,7 @@ static FinBlock *allfin; // list of all blocks
BitVector runtime·gcdatamask;
BitVector runtime·gcbssmask;
-extern Mutex runtime·gclock;
+Mutex runtime·gclock;
static Workbuf* getempty(Workbuf*);
static Workbuf* getfull(Workbuf*);