Re: [go-nuts] Garbage Collector triggering when deleting an object

2020-11-22 Thread Robert Engels
Read about Go finalizers. > On Nov 22, 2020, at 6:13 AM, Sean wrote: > > I am writing a Golang wrapper for OpenAL-Soft. > I need to create some buffers. These operations are happening on the > OpenAL-Soft side (So C functions). I am loading PCM data into buffers. > > Can I set up a trigger m

[go-nuts] Garbage Collector triggering when deleting an object

2020-11-22 Thread Sean
I am writing a Golang wrapper for OpenAL-Soft. I need to create some buffers. These operations are happening on the OpenAL-Soft side (So C functions). I am loading PCM data into buffers. Can I set up a trigger mechanism like "x.__del__" as in Python? I can set the garbage collector to follow s

[go-nuts] garbage collector forced to run every two minutes

2019-09-18 Thread Vincent Blanchon
Hi, I was wondering what problem *gcTriggerTime* is supposed to solve? Why does the language need to force the GC every two minutes if it did not run? Thanks in advance -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this

[go-nuts] Garbage collector and Slices

2018-08-20 Thread 'Florian Uekermann' via golang-nuts
Dear all, I have some questions concerning the implementation details of the garbage collector regarding slices and arrays. I'm implementing bit slices. The current approach is to use the following struct: type BitSlice { data []uint64 len int } Given that the slices length and capacity are

[go-nuts] Garbage collector

2016-11-09 Thread vyasgiridhar27
Is there a way to overwork the garbage collector in go lang? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more op