Hacker News new | ask | show | jobs
by gmueckl 2528 days ago
D with its conservative GC may run into random issues on 32 bit platforms. I have seen this effect in some rather trivial programs that should have used only a few MB of memory, but ended up eating up their whole address space and crashing. Not all D programs are affected all the time, mind you. But it's a bummer if it happens.

Having made this experience, I doubt that conservative GC can ever be declared safe, unlike completely precise GC.

1 comments

D 2.085 added support for precise garbage collector.
It is still not enabled by default, though. I would suspect that you need to audit your code for pointers stored in integers amd other shenanigans before enabling it in production.