Garbage collection, and practical strategies to avoid allocation

Michel Fortin michel.fortin at michelf.ca
Sat Jun 1 04:10:07 PDT 2013


On 2013-06-01 02:02:53 +0000, Manu <turkeyman at gmail.com> said:

>   * find a solution for deterministic embedded garbage collection

I think reference counting while still continuing to use the current GC 
to release cycles is the way to go. It wouldn't be too hard to 
implement.

This could make it realistic to disable the GC entirely in a program if 
you need everything to be deterministic. The GC could still be of 
assistance as a debug tool to help find those rogue cycles that 
shouldn't be there by configuring it to emit logs about what it 
deallocates.

-- 
Michel Fortin
michel.fortin at michelf.ca
http://michelf.ca/



More information about the Digitalmars-d mailing list