Re: [go-nuts] Re: simplifying freeing CString

2016-10-19 Thread andrew . smith
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

Re: [go-nuts] Re: simplifying freeing CString

2016-10-19 Thread Ian Lance Taylor
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

[go-nuts] Re: simplifying freeing CString

2016-10-19 Thread andrew . smith
> > 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