Re: [go-nuts] Is runtime.Keepalive() needed inside the methods for a receiver object?

2019-07-03 Thread K.S. Bhaskar
Thank you very much, Ian. Regards – Bhaskar On Wednesday, July 3, 2019 at 5:44:58 PM UTC-4, Ian Lance Taylor wrote: > > On Wed, Jul 3, 2019 at 1:32 PM K.S. Bhaskar > wrote: > > > > https://github.com/golang/go/issues/13347#issuecomment-158568326 seems > to suggest runtime.KeepAlive() is not n

Re: [go-nuts] Is runtime.Keepalive() needed inside the methods for a receiver object?

2019-07-03 Thread Ian Lance Taylor
On Wed, Jul 3, 2019 at 1:32 PM K.S. Bhaskar wrote: > > https://github.com/golang/go/issues/13347#issuecomment-158568326 seems to > suggest runtime.KeepAlive() is not needed but it does not seem definitive. > > If there is a function such as the one below (from > https://gitlab.com/YottaDB/Lang/Y

[go-nuts] Is runtime.Keepalive() needed inside the methods for a receiver object?

2019-07-03 Thread K.S. Bhaskar
https://github.com/golang/go/issues/13347#issuecomment-158568326 seems to suggest runtime.KeepAlive() is not needed but it does not seem definitive. If there is a function such as the one below (from https://gitlab.com/YottaDB/Lang/YDBGo/blob/47f5960d03b2c00ae33222ec1d3bdc60a98226c1/buffer_t.go#