Descriptioncmd/gc: in the runtime package, don't promote any decls to the heap.
In the runtime, we want to control where allocations happen.
In particular, we don't want the code implementing malloc to
itself trigger a malloc. This change prevents the compiler
from inserting mallocs on our behalf (due to escaping declarations).
This check does not trigger on the current runtime code.
Note: Composite literals are still allowed.
Patch Set 1 #Patch Set 2 : diff -r dd3851554f5b https://code.google.com/p/go/ #Patch Set 3 : diff -r 448b8758d34f https://code.google.com/p/go/ #
MessagesTotal messages: 3
|