]> Cypherpunks repositories - gostls13.git/commitdiff
Update oudated comment
authormakdon <makdon@makdon.me>
Mon, 17 May 2021 16:27:11 +0000 (16:27 +0000)
committerKeith Randall <khr@golang.org>
Thu, 8 Jul 2021 16:59:21 +0000 (16:59 +0000)
Update comment cause gc/select.go has been moved to walk/select.go and gc/reflect.go has been moved to reflectdata/reflect.go

Change-Id: I6894527e1e9dbca50ace92a51bf942f9495ce88c
GitHub-Last-Rev: 6d6a4471440403218b68ba32d4038ca41eae2901
GitHub-Pull-Request: golang/go#45976
Reviewed-on: https://go-review.googlesource.com/c/go/+/317191
Reviewed-by: Keith Randall <khr@golang.org>
Trust: Michael Pratt <mpratt@google.com>

src/cmd/compile/internal/reflectdata/reflect.go
src/cmd/link/internal/ld/decodesym.go
src/internal/reflectlite/type.go
src/reflect/type.go
src/runtime/runtime2.go
src/runtime/select.go
src/runtime/type.go

index e07294be0f92bb686a04b194f43bff015de5a201..eb9a8a6c9bc73ade1974d19e63cdbe225224935f 100644 (file)
@@ -669,7 +669,7 @@ var kinds = []int{
 // tflag is documented in reflect/type.go.
 //
 // tflag values must be kept in sync with copies in:
-//     cmd/compile/internal/gc/reflect.go
+//     cmd/compile/internal/reflectdata/reflect.go
 //     cmd/link/internal/ld/decodesym.go
 //     reflect/type.go
 //     runtime/type.go
index c41d97706efa361b50b58881b2c4a18457bcbb1a..629bdcf4cac7a9178dfe155972160c208887efca 100644 (file)
@@ -16,12 +16,12 @@ import (
 
 // Decoding the type.* symbols.         This has to be in sync with
 // ../../runtime/type.go, or more specifically, with what
-// cmd/compile/internal/gc/reflect.go stuffs in these.
+// cmd/compile/internal/reflectdata/reflect.go stuffs in these.
 
 // tflag is documented in reflect/type.go.
 //
 // tflag values must be kept in sync with copies in:
-//     cmd/compile/internal/gc/reflect.go
+//     cmd/compile/internal/reflectdata/reflect.go
 //     cmd/link/internal/ld/decodesym.go
 //     reflect/type.go
 //     runtime/type.go
index f529f7c5fcc2b6ad1334949354a2cfe9cd4f23b1..b1899b0191f3f9b77648945112d84b05ebc63d5a 100644 (file)
@@ -68,7 +68,7 @@ type Type interface {
 }
 
 /*
- * These data structures are known to the compiler (../../cmd/internal/gc/reflect.go).
+ * These data structures are known to the compiler (../../cmd/internal/reflectdata/reflect.go).
  * A few are known to ../runtime/type.go to convey to debuggers.
  * They are also known to ../runtime/type.go.
  */
@@ -111,7 +111,7 @@ const (
 // available in the memory directly following the rtype value.
 //
 // tflag values must be kept in sync with copies in:
-//     cmd/compile/internal/gc/reflect.go
+//     cmd/compile/internal/reflectdata/reflect.go
 //     cmd/link/internal/ld/decodesym.go
 //     runtime/type.go
 type tflag uint8
index df863ae106f487e635773a36cbb888ca5fb07dc1..f672a7a5d5fc996e93a38c4c99fddd4fee76a687 100644 (file)
@@ -228,7 +228,7 @@ type Type interface {
 // See https://golang.org/issue/4876 for more details.
 
 /*
- * These data structures are known to the compiler (../../cmd/internal/gc/reflect.go).
+ * These data structures are known to the compiler (../../cmd/internal/reflectdata/reflect.go).
  * A few are known to ../runtime/type.go to convey to debuggers.
  * They are also known to ../runtime/type.go.
  */
@@ -271,7 +271,7 @@ const (
 // available in the memory directly following the rtype value.
 //
 // tflag values must be kept in sync with copies in:
-//     cmd/compile/internal/gc/reflect.go
+//     cmd/compile/internal/reflectdata/reflect.go
 //     cmd/link/internal/ld/decodesym.go
 //     runtime/type.go
 type tflag uint8
@@ -1910,7 +1910,7 @@ func MapOf(key, elem Type) Type {
 
        // Make a map type.
        // Note: flag values must match those used in the TMAP case
-       // in ../cmd/compile/internal/gc/reflect.go:writeType.
+       // in ../cmd/compile/internal/reflectdata/reflect.go:writeType.
        var imap interface{} = (map[unsafe.Pointer]unsafe.Pointer)(nil)
        mt := **(**mapType)(unsafe.Pointer(&imap))
        mt.str = resolveReflectName(newName(s, "", false))
@@ -2841,7 +2841,7 @@ func runtimeStructField(field StructField) (structField, string) {
 
 // typeptrdata returns the length in bytes of the prefix of t
 // containing pointer data. Anything after this offset is scalar data.
-// keep in sync with ../cmd/compile/internal/gc/reflect.go
+// keep in sync with ../cmd/compile/internal/reflectdata/reflect.go
 func typeptrdata(t *rtype) uintptr {
        switch t.Kind() {
        case Struct:
@@ -2865,7 +2865,7 @@ func typeptrdata(t *rtype) uintptr {
        }
 }
 
-// See cmd/compile/internal/gc/reflect.go for derivation of constant.
+// See cmd/compile/internal/reflectdata/reflect.go for derivation of constant.
 const maxPtrmaskBytes = 2048
 
 // ArrayOf returns the array type with the given length and element type.
index 0e0eb0b7285e79b28ece7b152a18876bea321ba7..2a66826f34bb8d1b0af42326dc93276380339b59 100644 (file)
@@ -895,7 +895,7 @@ type funcinl struct {
 // layout of Itab known to compilers
 // allocated in non-garbage-collected memory
 // Needs to be in sync with
-// ../cmd/compile/internal/gc/reflect.go:/^func.WriteTabs.
+// ../cmd/compile/internal/reflectdata/reflect.go:/^func.WriteTabs.
 type itab struct {
        inter *interfacetype
        _type *_type
@@ -940,7 +940,7 @@ func extendRandom(r []byte, n int) {
 
 // A _defer holds an entry on the list of deferred calls.
 // If you add a field here, add code to clear it in freedefer and deferProcStack
-// This struct must match the code in cmd/compile/internal/gc/reflect.go:deferstruct
+// This struct must match the code in cmd/compile/internal/reflectdata/reflect.go:deferstruct
 // and cmd/compile/internal/gc/ssa.go:(*state).call.
 // Some defers will be allocated on the stack and some on the heap.
 // All defers are logically part of the stack, so write barriers to
index e72761bfa91c59774541fa9831b5e0c78db89b34..06edb69f429ba0c1ac01279de0204d10e71bda8a 100644 (file)
@@ -15,7 +15,7 @@ const debugSelect = false
 
 // Select case descriptor.
 // Known to compiler.
-// Changes here must also be made in src/cmd/internal/gc/select.go's scasetype.
+// Changes here must also be made in src/cmd/compile/internal/walk/select.go's scasetype.
 type scase struct {
        c    *hchan         // chan
        elem unsafe.Pointer // data element
index 335fc57f4b9169815f6abc91b86b55ebe6a8ea63..4039273695b106746a0582386c8834c72d6b4f15 100644 (file)
@@ -11,7 +11,7 @@ import "unsafe"
 // tflag is documented in reflect/type.go.
 //
 // tflag values must be kept in sync with copies in:
-//     cmd/compile/internal/gc/reflect.go
+//     cmd/compile/internal/reflectdata/reflect.go
 //     cmd/link/internal/ld/decodesym.go
 //     reflect/type.go
 //      internal/reflectlite/type.go
@@ -25,7 +25,7 @@ const (
 )
 
 // Needs to be in sync with ../cmd/link/internal/ld/decodesym.go:/^func.commonsize,
-// ../cmd/compile/internal/gc/reflect.go:/^func.dcommontype and
+// ../cmd/compile/internal/reflectdata/reflect.go:/^func.dcommontype and
 // ../reflect/type.go:/^type.rtype.
 // ../internal/reflectlite/type.go:/^type.rtype.
 type _type struct {
@@ -383,7 +383,7 @@ type maptype struct {
 }
 
 // Note: flag values must match those used in the TMAP case
-// in ../cmd/compile/internal/gc/reflect.go:writeType.
+// in ../cmd/compile/internal/reflectdata/reflect.go:writeType.
 func (mt *maptype) indirectkey() bool { // store ptr to key instead of key itself
        return mt.flags&1 != 0
 }