Leave GC collection to the user of the D library?

Ola Fosheim Grostad ola.fosheim.grostad at gmail.com
Mon May 10 01:58:40 UTC 2021


On Sunday, 9 May 2021 at 20:36:39 UTC, Ali Çehreli wrote:
> That's an interesting idea! But it should be a little 
> different: "I need to collect garbage; I will wait till all 
> others are quiet (and they should know to wait until the 
> collection is over); I collect garbage. Everybody resume." 
> Still, this would require keeping the D GC disabled and my 
> library handles collections at opportune moments that it 
> creates.

Yes, one semaphore may use an nonoptimal order when it wakes up 
threads...
Getting this right takes some time.


More information about the Digitalmars-d mailing list