• 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
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.dist Loading commit data...
all.bash Loading commit data...
all.bat Loading commit data...
all.rc Loading commit data...
clean.bash Loading commit data...
clean.bat Loading commit data...
clean.rc Loading commit data...
make.bash Loading commit data...
make.bat Loading commit data...
make.rc Loading commit data...
race.bash Loading commit data...
race.bat Loading commit data...
run.bash Loading commit data...
run.bat Loading commit data...
run.rc Loading commit data...
sudo.bash Loading commit data...