Go compiler - questions about escape analysis.

91 views
Skip to first unread message

messi...@gmail.com

unread,
May 19, 2021, 11:40:34 PM5/19/21
to golang-nuts
Hi,

I'm reading the go compiler source code and now come to the escape analysis part,  I just can't figured out the following question so I want to get some help from the community:

What's the meaning of location.transient?  I can't fully understand the comment of this field, could someone please give me an example to explain the meaning of "the represented expression's address does not outlive the statement; that is, whether its storage can be immediately reused"?  

Thanks for any help and tips.
Reply all
Reply to author
Forward
0 new messages