Bug 15917 – std.concurrency module destructor causes useless creation of new MessageBox

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-04-12T19:56:00Z
Last change time
2016-04-18T18:53:06Z
Assigned to
nobody
Creator
yazan.dabain

Comments

Comment #0 by yazan.dabain — 2016-04-12T19:56:24Z
std.concurrency module destructor causes useless creation of new MessageBox by calling thisTid. The following is part of the stacktrace showing the problem: ... ??:? @trusted std.concurrency.MessageBox std.concurrency.MessageBox.__ctor() [0x64775b] ??:? @trusted std.concurrency.Tid std.concurrency.thisTid().__dgliteral1() [0x646f2e] ??:? @property @safe std.concurrency.Tid std.concurrency.thisTid() [0x646ede] ??:? void std.concurrency.unregisterMe() [0x6835f0] ??:? void std.concurrency.ThreadInfo.cleanup() [0x646ff0] ??:? void std.concurrency._staticDtor265() [0x646a70] ??:? void std.concurrency.__moddtor() [0x646a80] ...
Comment #1 by github-bugzilla — 2016-04-18T18:53:06Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/9d575fa33970da793a07cd7ebcccb4d1c13735fa Fix issue 15917 - std.concurrency module destructor causes useless creation of new MessageBox https://github.com/dlang/phobos/commit/4f18045c7fa965be50dd0db8f0ec6531df7f63db Merge pull request #4191 from yazd/fix-15917 Fix issue 15917 - std.concurrency module destructor causes useless cr…