More radical ideas about gc and reference counting
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Mon May 5 23:33:27 PDT 2014
On 06/05/14 08:07, HaraldZealot wrote:
> I notice that I view only part of problem, can anybody link or describe
> me completely state and problems of current garbage collection and other
> resource management? It help me in finding of existence solution (at
> least theoretical).
The major issue with the garbage collector is that it's not guaranteed
to run a collection. When a collection is run the GC will call the
destructors for the objects it collects. If there's no guarantee a
collection is run there can be no guarantee that destructors are called.
A collection is usually run when allocating new memory and there's not
enough memory available.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list