summaryrefslogtreecommitdiff
path: root/src/runtime/gcinfo_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-11-11 01:23:01 -0500
committerRuss Cox <rsc@golang.org>2014-11-11 01:23:01 -0500
commite4007cd213bb488118d17dc520218b96f935d9be (patch)
treeb35280c2283a26c5bcc9b98eee4f527bc1c07885 /src/runtime/gcinfo_test.go
parent3e160bec8fe1de46f8752d037c24000387759d08 (diff)
downloadgo-e4007cd213bb488118d17dc520218b96f935d9be.tar.gz
[dev.cc] reflect: interfaces contain only pointers
[This CL is part of the removal of C code from package runtime. See golang.org/s/dev.cc for an overview.] Adjustments for changes made in CL 169360043. This change is already present in the dev.garbage branch. LGTM=r R=r CC=austin, golang-codereviews, iant, khr https://codereview.appspot.com/167520044
Diffstat (limited to 'src/runtime/gcinfo_test.go')
-rw-r--r--src/runtime/gcinfo_test.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/runtime/gcinfo_test.go b/src/runtime/gcinfo_test.go
index 88f6703f9..1443c2c13 100644
--- a/src/runtime/gcinfo_test.go
+++ b/src/runtime/gcinfo_test.go
@@ -62,12 +62,10 @@ func verifyGCInfo(t *testing.T, name string, p interface{}, mask0 []byte) {
func nonStackInfo(mask []byte) []byte {
// BitsDead is replaced with BitsScalar everywhere except stacks.
mask1 := make([]byte, len(mask))
- mw := false
for i, v := range mask {
- if !mw && v == BitsDead {
+ if v == BitsDead {
v = BitsScalar
}
- mw = !mw && v == BitsMultiWord
mask1[i] = v
}
return mask1
@@ -84,7 +82,6 @@ const (
BitsDead = iota
BitsScalar
BitsPointer
- BitsMultiWord
)
const (
@@ -188,6 +185,6 @@ var (
infoString = []byte{BitsPointer, BitsDead}
infoSlice = []byte{BitsPointer, BitsDead, BitsDead}
- infoEface = []byte{BitsMultiWord, BitsEface}
- infoIface = []byte{BitsMultiWord, BitsIface}
+ infoEface = []byte{BitsPointer, BitsPointer}
+ infoIface = []byte{BitsPointer, BitsPointer}
)