• David Chase's avatar
    cmd/internal/gc: move check for large-hence-heap-allocated types into escape analysis · e5060c7f
    David Chase authored
    Before this change, the check for too-large arrays (and other large
    types) occurred after escape analysis.  If the data moved off stack
    and onto the heap contained any pointers, it would therefore escape,
    but because the too-large check occurred after escape analysis this
    would not be recorded and a stack pointer would leak to the heap
    (see the modified escape_array.go for an example).
    
    Some of these appear to remain, in calls to typecheck from within walk.
    
    Also corrected a few comments in escape_array.go about "BAD"
    analysis that is now done correctly.
    
    Enhanced to move aditional EscNone-but-large-so-heap checks into esc.c.
    
    Change-Id: I770c111baff28a9ed5f8beb601cf09dacc561b83
    Reviewed-on: https://go-review.googlesource.com/10268Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    e5060c7f
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
newlink Loading commit data...
nm Loading commit data...
objdump Loading commit data...
old5a Loading commit data...
old6a Loading commit data...
old8a Loading commit data...
old9a Loading commit data...
pack Loading commit data...
pprof Loading commit data...
trace Loading commit data...
yacc Loading commit data...