is d-runtime non-gc safe?

Benjamin Thaut code at benjamin-thaut.de
Sat Dec 3 01:01:22 PST 2011


Am 02.12.2011 20:29, schrieb Sean Kelly:
> On Dec 2, 2011, at 8:57 AM, Benjamin Thaut wrote:
>
>> I know phobos is nto usable without a gc but is druntime usable without having a GC?
>
> You'll leak when threads terminate (they're allocated by the GC and not safe for the user to delete), but I think that's it for user-visible code.  Some array ops and AA use will leak as well, but there's no way around that.  For kicks you might want to try linking gcstub (which calls malloc/free) and see how it goes.

Thanks, That doesn't sound to bad. If I manage to get a non leaking non 
gc version of d-runtime working would there be any interest in that?

Kind Regards
Benjamin Thaut


More information about the Digitalmars-d mailing list