• Russ Cox's avatar
    cmd/gc: move large stack variables to heap · 1f4d58ad
    Russ Cox authored
    Individual variables bigger than 10 MB are now
    moved to the heap, as if they had escaped on
    their own.
    
    This avoids ridiculous stacks for programs that
    do things like
            x := [1<<30]byte{}
            ... use x ...
    
    If 10 MB is too small, we can raise the limit.
    
    Fixes #6077.
    
    R=ken2
    CC=golang-dev
    https://golang.org/cl/12650045
    1f4d58ad
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...
ld Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
prof Loading commit data...
yacc Loading commit data...