• Ian Lance Taylor's avatar
    reflect: fix bucketOf to only look at ptrdata entries in gcdata · b5e51943
    Ian Lance Taylor authored
    The gcdata field only records ptrdata entries, not size entries.
    
    Also fix an obsolete comment: the enforced limit on pointer maps is
    now 2048 bytes, not 16 bytes.
    
    I wasn't able to contruct a test case for this. It would require
    building a type whose size is greater than 64 bytes but less than 128
    bytes, with at least one pointer in first 64 bytes but no pointers
    after the first 64 bytes, such that the linker arranges for the one
    byte gcbits value to be immediately followed by a non-zero byte.
    
    Change-Id: I9118d3e4ec6f07fd18b72f621c1e5f4fdfe5f80b
    Reviewed-on: https://go-review.googlesource.com/37142
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarAustin Clements <austin@google.com>
    b5e51943
Name
Last commit
Last update
..
all_test.go Loading commit data...
asm_386.s Loading commit data...
asm_amd64.s Loading commit data...
asm_amd64p32.s Loading commit data...
asm_arm.s Loading commit data...
asm_arm64.s Loading commit data...
asm_mips64x.s Loading commit data...
asm_mipsx.s Loading commit data...
asm_ppc64x.s Loading commit data...
asm_s390x.s Loading commit data...
deepequal.go Loading commit data...
example_test.go Loading commit data...
export_test.go Loading commit data...
makefunc.go Loading commit data...
set_test.go Loading commit data...
swapper.go Loading commit data...
tostring_test.go Loading commit data...
type.go Loading commit data...
value.go Loading commit data...