• Russ Cox's avatar
    gc: tweak and enable escape analysis · db5f9da4
    Russ Cox authored
    -s now means *disable* escape analysis.
    
    Fix escape leaks for struct/slice/map literals.
    Add ... tracking.
    Rewrite new(T) and slice literal into stack allocation when safe.
    
    Add annotations to reflect.
    Reflect is too chummy with the compiler,
    so changes like these affect it more than they should.
    
    R=lvd, dave, gustavo
    CC=golang-dev
    https://golang.org/cl/4954043
    db5f9da4
value.go 50.4 KB