aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime2.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-11-24 12:07:11 -0500
committerRuss Cox <rsc@golang.org>2014-11-24 12:07:11 -0500
commitb8540fc28867623b23c23e97108a6e975e8a49e7 (patch)
treee5c56e6595f5ebf90fc796a7699e53da94076c84 /src/runtime/runtime2.go
parent273507aa8f17b2b619934ae63c99a2e31a4df5e2 (diff)
parenta236804c764c9aa1fb293c24be9c571de5795d05 (diff)
downloadgo-b8540fc28867623b23c23e97108a6e975e8a49e7.tar.xz
[dev.garbage] all: merge dev.cc (493ad916c3b1) into dev.garbage
TBR=austin CC=golang-codereviews https://golang.org/cl/179290043
Diffstat (limited to 'src/runtime/runtime2.go')
-rw-r--r--src/runtime/runtime2.go16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go
index 7625a2dd81..d18178d093 100644
--- a/src/runtime/runtime2.go
+++ b/src/runtime/runtime2.go
@@ -45,7 +45,13 @@ const (
_Pdead
)
-// XXX inserting below here
+// The next line makes 'go generate' write the zgen_*.go files with
+// per-OS and per-arch information, including constants
+// named goos_$GOOS and goarch_$GOARCH for every
+// known GOOS and GOARCH. The constant is 1 on the
+// current system, 0 otherwise; multiplying by them is
+// useful for defining GOOS- or GOARCH-specific constants.
+//go:generate go run gengoos.go
type mutex struct {
// Futex-based impl treats it as uint32 key,
@@ -397,14 +403,6 @@ type itab struct {
fun [0]uintptr
}
-const (
- // TODO: Generate in cmd/dist.
- _NaCl = 0
- _Windows = 0
- _Solaris = 0
- _Plan9 = 0
-)
-
// Lock-free stack node.
// // Also known to export_test.go.
type lfnode struct {