• Russ Cox's avatar
    cmd/gc: don't use static init to initialize small structs, fields · cfafa9f4
    Russ Cox authored
    Better to avoid the memory loads and just use immediate constants.
    This especially applies to zeroing, which was being done by
    copying zeros from elsewhere in the binary, even if the value
    was going to be completely initialized with non-zero values.
    The zero writes were optimized away but the zero loads from
    the data segment were not.
    
    LGTM=r
    R=r, bradfitz, dvyukov
    CC=golang-codereviews
    https://golang.org/cl/152700045
    cfafa9f4
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 Loading commit data...
ld Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
yacc Loading commit data...