]> Cypherpunks repositories - gostls13.git/commit
reflect: generated unrolled GC bitmask directly
authorIan Lance Taylor <iant@golang.org>
Mon, 13 Oct 2014 17:01:34 +0000 (10:01 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 13 Oct 2014 17:01:34 +0000 (10:01 -0700)
commit3cf9acccae4686ebb1dbaece4056eca58b8392b2
treea36c0a6a3f72e8f4993e5527f083890349030616
parent7c74850d764665aedcef8831cf028bea93f35178
reflect: generated unrolled GC bitmask directly

The code for a generated type is already generating an
unrolled GC bitmask.  Rather than unrolling the the source
type bitmasks and copying them, just generate the required
bitmask directly.  Don't mark it as an unrolled GC program,
since there is no need to do so.

Fixes #8917.

LGTM=rsc
R=dvyukov, rsc
CC=golang-codereviews
https://golang.org/cl/156930044
src/reflect/all_test.go
src/reflect/type.go