Idea #1 on integrating RC with GC

Paulo Pinto pjmlp at progtools.org
Wed Feb 5 04:12:00 PST 2014


On Wednesday, 5 February 2014 at 08:06:30 UTC, Kagamin wrote:
> On Wednesday, 5 February 2014 at 07:45:26 UTC, Andrei 
> Alexandrescu wrote:
>> In an RC system you must collect cycles. ARC leaves that to 
>> the programmer in the form of weak pointers. This particular 
>> idea automates that.
>
> Having GC as a backup for cycles doesn't prevent making 
> everything transparently refcounted. As to allocation 
> strategies, the code can just use compatible allocation 
> strategy.

Yes, the GC just needs to check roots for already released 
blocks, if I am not mistaken.


More information about the Digitalmars-d mailing list