[fpc-devel] Improving Ref Counting
Jamie McCracken
jamie-junk at blueyonder.co.uk
Sun Feb 27 12:54:40 CET 2005
Uberto Barbini wrote:
>>6) Whenever an exception is thrown, wait until its either handled or
>>fully propagated and then perform some garbage collection. (traverse the
>>single linked list of all managed objects and for each object check
>>whether anything that references it is still valid and delete if
>>appropriate).
>
>
> If so raising an exception will freeze your application, checking some
> thousand hundreds of lists.
There would be a small delay yes but Pascal is very fast so even
checking many thousands of lists should only take a few milliseconds on
a reasonable machine. Dont forget all GCs do this whenever garbage
allocation is performed.
> And how do you reconnaize a valid reference from an invalid one?
>
The same way a GC does?
jamie.
>
> Bye Uberto
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
>
More information about the fpc-devel
mailing list