• Keith Randall's avatar
    reflect: Remove imprecise techniques from channel/select operations. · 873aaa59
    Keith Randall authored
    Reflect used to communicate to the runtime using interface words,
    which is bad for precise GC because sometimes iwords hold a pointer
    and sometimes they don't.  This change rewrites channel and select
    operations to always pass pointers to the runtime.
    
    reflect.Select gets somewhat more expensive, as we now do an allocation
    per receive case instead of one allocation whose size is the max of
    all the received types.  This seems unavoidable to get preciseness
    (unless we move the allocation into selectgo, which is a much bigger
    change).
    
    Fixes #6490
    
    R=golang-codereviews, dvyukov, rsc
    CC=golang-codereviews
    https://golang.org/cl/52900043
    873aaa59
Name
Last commit
Last update
..
all_test.go Loading commit data...
asm_386.s Loading commit data...
asm_amd64.s Loading commit data...
asm_arm.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...
tostring_test.go Loading commit data...
type.go Loading commit data...
value.go Loading commit data...