]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: tweak hash bucket type descriptor
authorMatthew Dempsky <mdempsky@google.com>
Tue, 1 Dec 2020 21:38:26 +0000 (13:38 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 2 Dec 2020 06:37:47 +0000 (06:37 +0000)
commit15085f89746762e0919fa257feac3eb5b996e6db
treed4d136cabeefbeb433a42b27228ca5b6c000af72
parent1408d26ccca5f770e29785ddd442523416de2dd6
[dev.regabi] cmd/compile: tweak hash bucket type descriptor

There's no need for the bucket type to be precise. The compiler
doesn't actually generate code that references these fields; it just
needs it for size and GC bitmap calculations.

However, changing the type field does alter the runtime type
descriptor and relocations emitted by the compiler, so this change
isn't safe for toolstash.

Change-Id: Icf79d6c4326515889b13435a575d618e3bbfbcd7
Reviewed-on: https://go-review.googlesource.com/c/go/+/274712
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/gc/reflect.go