aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/select.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2015-11-02 10:46:58 -0800
committerMatthew Dempsky <mdempsky@google.com>2016-02-22 07:42:37 +0000
commitf28bbb776a050cc3edca2bbe1241d81217a7a251 (patch)
treed2dc7187d70b576b72753042a5b62e88597e3148 /src/runtime/select.go
parentd0c11577b9c6d584959aceddf97266b9cbc336d0 (diff)
downloadgo-f28bbb776a050cc3edca2bbe1241d81217a7a251.tar.gz
go-f28bbb776a050cc3edca2bbe1241d81217a7a251.zip
cmd/compile: move hiter, hmap, and scase definitions into builtin.go
Also eliminates per-maptype hiter and hmap types, since they're not really needed anyway. Update packages reflect and runtime accordingly. Reduces golang.org/x/tools/cmd/godoc's text segment by ~170kB: text data bss dec hex filename 13085702 140640 151520 13377862 cc2146 godoc.before 12915382 140640 151520 13207542 c987f6 godoc.after Updates #6853. Change-Id: I948b2bc1f22d477c1756204996b4e3e1fb568d81 Reviewed-on: https://go-review.googlesource.com/16610 Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/runtime/select.go')
-rw-r--r--src/runtime/select.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/select.go b/src/runtime/select.go
index b6c3fea001..25ebdaa595 100644
--- a/src/runtime/select.go
+++ b/src/runtime/select.go
@@ -22,7 +22,7 @@ const (
// Select statement header.
// Known to compiler.
-// Changes here must also be made in src/cmd/internal/gc/select.go's selecttype.
+// Changes here must also be made in src/cmd/compile/internal/gc/select.go's selecttype.
type hselect struct {
tcase uint16 // total count of scase[]
ncase uint16 // currently filled scase[]
@@ -33,7 +33,7 @@ type hselect struct {
// Select case descriptor.
// Known to compiler.
-// Changes here must also be made in src/cmd/internal/gc/select.go's selecttype.
+// Changes here must also be made in src/cmd/compile/internal/gc/builtin/runtime.go.
type scase struct {
elem unsafe.Pointer // data element
c *hchan // chan