Re: [go-nuts] Go 1.24 runtime.Cleanup and sync.Pool.

2025-01-22 Thread John
Roger. And thank you Ian. On Tuesday, January 21, 2025 at 8:19:53 PM UTC-8 Ian Lance Taylor wrote: > On Tue, Jan 21, 2025 at 6:10 PM John wrote: > > > > Curious if the new runtime.Cleanup() would allow auto sync.Pool.Put() > for a variable. I'm not sure from the documentation if this would wor

Re: [go-nuts] Go 1.24 runtime.Cleanup and sync.Pool.

2025-01-21 Thread Ian Lance Taylor
On Tue, Jan 21, 2025 at 6:10 PM John wrote: > > Curious if the new runtime.Cleanup() would allow auto sync.Pool.Put() for a > variable. I'm not sure from the documentation if this would work or would > cause some type of issue (the variable was on its way to collection and then > gets put in a

[go-nuts] Go 1.24 runtime.Cleanup and sync.Pool.

2025-01-21 Thread John
Curious if the new runtime.Cleanup() would allow auto sync.Pool.Put() for a variable. I'm not sure from the documentation if this would work or would cause some type of issue (the variable was on its way to collection and then gets put in a pool. I assume it would stop collection?). The guar