Descriptioncmd/gc: move large stack variables to heap
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 issue 6077.
Patch Set 1 #Patch Set 2 : diff -r 1d20167e06c6 https://code.google.com/p/go/ #Patch Set 3 : diff -r 100a10512ea4 https://code.google.com/p/go/ #
MessagesTotal messages: 4
|