D garbage collector and real-time systems

Nicholas Wilson via Digitalmars-d digitalmars-d at puremagic.com
Wed Jan 28 07:54:32 PST 2015


On Wednesday, 28 January 2015 at 07:43:35 UTC, ketmar wrote:
> On Wed, 28 Jan 2015 06:58:41 +0000, Tom wrote:
>
>> Or is there now the possibility of disabling the GC 
>> altogether, or
>> replacing it with a refcounting 'GC' etc?
>
> you still can do manual memory management with `malloc()` and 
> friends.
> but you must be very cautious with dynamic arrays and slices. 
> may be your
> best bet is to not use built-in dynamic arrays at all and write 
> a
> replacement class with manual memory management. ah, and the 
> same for AAs.

There is also bitbucket.org/infognition/dstuff for some other gc
related hacks that may be of use.


More information about the Digitalmars-d mailing list