Disable GC entirely

Jacob Carlborg doob at me.com
Mon Apr 8 05:22:04 PDT 2013


On 2013-04-08 12:57, Regan Heath wrote:

> D should have a set of global allocator hooks.  If it did, you could
> easily catch unexpected allocations in tight loops and realtime code.
> If it did, GC-free D would be trivial - just replace the default GC
> based allocator with a malloc/free one, or any other scheme you like.

You can already do that:

https://github.com/D-Programming-Language/druntime/tree/master/src/gcstub

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list