[Issue 14868] MmFile destructor seems to corrupt memory
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Aug 6 08:34:18 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14868
Dmitry Olshansky <dmitry.olsh at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dmitry.olsh at gmail.com
--- Comment #6 from Dmitry Olshansky <dmitry.olsh at gmail.com> ---
~this()
{
unmap();
errnoEnforce(fd == -1 || fd <= 2 || .close(fd) != -1,
"Could not close handle");
}
enforce internally throws exception so calling it in finalizer is baaad idea
with current non-reentrant GC.
--
More information about the Digitalmars-d-bugs
mailing list