Descriptioncmd/gc: fix escape analysis
If the analysis reached a node twice, then the analysis was cut off.
However, if the second arrival is at a lower depth (closer to escaping)
then it is important to repeat the traversal.
The repeating must be cut off at some point to avoid the occasional
infinite recursion. This CL cuts it off as soon as possible while still
passing all tests.
Fixes issue 4751.
Patch Set 1 #Patch Set 2 : diff -r e2f9b9a58240 https://code.google.com/p/go/ #Patch Set 3 : diff -r a49ff1ff1a55 https://code.google.com/p/go/ #
MessagesTotal messages: 4
|