[Issue 1164] Wrong order of memory deallocation
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Dec 25 08:23:20 PST 2016
https://issues.dlang.org/show_bug.cgi?id=1164
--- Comment #8 from Andrei Alexandrescu <andrei at erdani.com> ---
Cool, was able to repro. Fortunately we have a couple of cards in our sleeve.
What we could do is:
* Mark
* For each collectable object:
* Call dtor
* (NEW) Obliterate with .init
* Sweep
That way objects used during destruction will at least find objects in a
deterministic state.
--
More information about the Digitalmars-d-bugs
mailing list