March 03, 2013 [Issue 9641] New: Wrong module init order when a thread is created in a module ctor | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=9641 Summary: Wrong module init order when a thread is created in a module ctor Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: critical Priority: P2 Component: druntime AssignedTo: nobody@puremagic.com ReportedBy: code@benjamin-thaut.de --- Comment #0 from Benjamin Thaut <code@benjamin-thaut.de> 2013-03-03 05:51:59 PST --- Created an attachment (id=1198) repro case When you create a new thread in a module constructor the module tls constructors will be run before all module constructors have been run. This is incorrect behavior as the spec states "Shared static constructors on all modules are run before any static constructors." See attached repro case. Tested with dmd 2.062 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation