[fpc-devel] Improving Ref Counting

Peter Vreman peter at freepascal.org
Sun Feb 27 15:29:44 CET 2005


At 12:35 27-2-2005, you wrote:
>Hi,
>
>Rather than continuing the GC stuff which seems fruitless I thought it 
>might be better to improve what we have with ref counting (whilst taking a 
>leaf out of the GC book as well).
>
>I note that ref counting is very fast without all the implicit 
>try..finally stuff so I was wondering if it was possible to implement it 
>without them (whilst still being able to free them even if an exception 
>occurs).

Why are you looking at GC/Refcounting when the problem is the try..finally? 
It is better to rewrite the try..finally code using the C++ ABI for 
exception handling.


>My proposal is to do the following (its a hybrid ref count/GC):
>
>1) Remove all implicit try..finally in ref counting.

Already supported: {$implicitexceptions off}


Peter





More information about the fpc-devel mailing list