[Issue 1164] Wrong order of memory deallocation
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Dec 26 04:41:06 PST 2016
https://issues.dlang.org/show_bug.cgi?id=1164
--- Comment #10 from Andrei Alexandrescu <andrei at erdani.com> ---
(In reply to Pieter Penninckx from comment #9)
> Just to be sure I understand you correctly.
>
> Am I right that the garbage collector currently works as follows:
>
> * Mark (= mark all reachable objects as reachable)
> * For each collectable (= non-reachable) object:
> * Call dtor
> * release memory of the collectable object
I don't know exactly. I am pretty certain, however, that freed objects are
currently not overwritten with .init.
--
More information about the Digitalmars-d-bugs
mailing list