aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sema.go
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
commitd2574e2adb658b46ea2d8e22b3195cc14da1affe (patch)
tree58810c5dfaf8842fa3584530cc0c8ccfa1be6b62 /src/runtime/sema.go
parent8d61334dd5b08c8076e343aa33197bd219cdf922 (diff)
downloadgo-d2574e2adb658b46ea2d8e22b3195cc14da1affe.tar.gz
go-d2574e2adb658b46ea2d8e22b3195cc14da1affe.zip
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://golang.org/cl/141510043
Diffstat (limited to 'src/runtime/sema.go')
-rw-r--r--src/runtime/sema.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/sema.go b/src/runtime/sema.go
index 87ba5463b6..beacd67162 100644
--- a/src/runtime/sema.go
+++ b/src/runtime/sema.go
@@ -35,7 +35,7 @@ const semTabSize = 251
var semtable [semTabSize]struct {
root semaRoot
- pad [cacheLineSize - unsafe.Sizeof(semaRoot{})]byte
+ pad [_CacheLineSize - unsafe.Sizeof(semaRoot{})]byte
}
// Called from sync/net packages.