• Russ Cox's avatar
    cmd/gc, runtime: refactor interface inlining decision into compiler · 1806a573
    Russ Cox authored
    We need to change the interface value representation for
    concurrent garbage collection, so that there is no ambiguity
    about whether the data word holds a pointer or scalar.
    
    This CL does NOT make any representation changes.
    
    Instead, it removes representation assumptions from
    various pieces of code throughout the tree.
    The isdirectiface function in cmd/gc/subr.c is now
    the only place that decides that policy.
    The policy propagates out from there in the reflect
    metadata, as a new flag in the internal kind value.
    
    A follow-up CL will change the representation by
    changing the isdirectiface function. If that CL causes
    problems, it will be easy to roll back.
    
    Update #8405.
    
    LGTM=iant
    R=golang-codereviews, iant
    CC=golang-codereviews, r
    https://golang.org/cl/129090043
    1806a573
Name
Last commit
Last update
..
5a Loading commit data...
5c Loading commit data...
5g Loading commit data...
5l Loading commit data...
6a Loading commit data...
6c Loading commit data...
6g Loading commit data...
6l Loading commit data...
8a Loading commit data...
8c Loading commit data...
8g Loading commit data...
8l Loading commit data...
addr2line Loading commit data...
api Loading commit data...
cc Loading commit data...
cgo Loading commit data...
dist Loading commit data...
fix Loading commit data...
gc Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal/objfile Loading commit data...
ld Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
yacc Loading commit data...