Thanks, I actually did a test for this by calling runtime.GC() within the
function and it is indeed collected.
On Wednesday, October 19, 2016 at 5:43:47 PM UTC+1, Ian Lance Taylor wrote:
>
> On Wed, Oct 19, 2016 at 9:04 AM, >
> wrote:
> >> I have a follow up question. In the above example doe
On Wed, Oct 19, 2016 at 9:04 AM, wrote:
>> I have a follow up question. In the above example does golang give any
>> guarantee about the earliest point at which the temporay WrappedString
>> instance is collected. I mean, is it possible that the GC will collect the
>> WrappedString whilst the fu
>
> I have a follow up question. In the above example does golang give any
> guarantee about the earliest point at which the temporay WrappedString
> instance is collected. I mean, is it possible that the GC will collect the
> WrappedString whilst the function simulatedCall is still executing