diff options
author | Russ Cox <rsc@golang.org> | 2014-09-16 10:22:15 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-09-16 10:22:15 -0400 |
commit | 5819f77545053174374fc02ff3e09b6a6591c22c (patch) | |
tree | c7698f0ca27a64cd0de49e36c5d0501ab187ddd7 /src/runtime/mgc0.go | |
parent | f1e298b92fb8286ed1b9aa24f3cdfa5dd9e0841b (diff) | |
download | go-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.go')
-rw-r--r-- | src/runtime/mgc0.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/runtime/mgc0.go b/src/runtime/mgc0.go index 130e8262a..bd5ebab46 100644 --- a/src/runtime/mgc0.go +++ b/src/runtime/mgc0.go @@ -69,18 +69,6 @@ func clearpools() { } } -// State of background sweep. -// Protected by gclock. -// Must match mgc0.c. -var sweep struct { - g *g - parked bool - spanidx uint32 // background sweeper position - nbgsweep uint32 - npausesweep uint32 -} - -var gclock mutex // also in mgc0.c func gosweepone() uintptr func gosweepdone() bool |