]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.power64] runtime: fix gcinfo_test on power64x
authorAustin Clements <austin@google.com>
Fri, 31 Oct 2014 20:58:12 +0000 (16:58 -0400)
committerAustin Clements <austin@google.com>
Fri, 31 Oct 2014 20:58:12 +0000 (16:58 -0400)
The GC info masks for slices and strings were changed in
commit caab29a25f68, but the reference masks used by
gcinfo_test for power64x hadn't caught up.  Now they're
identical to amd64, so this CL fixes this test by combining
the reference masks for these platforms.

LGTM=rsc
R=rsc, dave
CC=golang-codereviews
https://golang.org/cl/162620044

src/runtime/gcinfo_test.go

index 7d432983b1186cbc9baab5f9d5a4c965d8934200..2c6d4d662f195b80d2e61f01cc6724652d1ac7f5 100644 (file)
@@ -137,7 +137,7 @@ func infoBigStruct() []byte {
                        BitsScalar, BitsScalar, BitsScalar, BitsScalar, // t int; y uint16; u uint64
                        BitsPointer, BitsDead, // i string
                }
-       case "amd64":
+       case "amd64", "power64", "power64le":
                return []byte{
                        BitsPointer,                        // q *int
                        BitsScalar, BitsScalar, BitsScalar, // w byte; e [17]byte
@@ -153,12 +153,6 @@ func infoBigStruct() []byte {
                        BitsScalar, BitsScalar, BitsDead, BitsScalar, BitsScalar, // t int; y uint16; u uint64
                        BitsPointer, BitsDead, // i string
                }
-       case "power64", "power64le":
-               return []byte{
-                       BitsPointer, BitsScalar, BitsScalar, BitsScalar,
-                       BitsMultiWord, BitsSlice, BitsScalar, BitsScalar,
-                       BitsScalar, BitsScalar, BitsMultiWord, BitsString,
-               }
        default:
                panic("unknown arch")
        }