[Issue 19978] D sometimes just crashes on exit with daemon threads
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri May 8 12:53:15 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=19978
--- Comment #3 from FeepingCreature <default_357-line at yahoo.de> ---
Okay, got it.
The problem is with a daemon thread, D doesn't join it when shutting down. As a
result, the GC shutdown sequence deletes the thread's memory right under it.
Why do we do this anyway? (gc_term>os_mem_unmap) Why not let the OS handle the
frees?
--
More information about the Digitalmars-d-bugs
mailing list