[Issue 9641] New: Wrong module init order when a thread is created in a module ctor
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 3 05:52:01 PST 2013
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 at puremagic.com
ReportedBy: code at benjamin-thaut.de
--- Comment #0 from Benjamin Thaut <code at 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: -------
More information about the Digitalmars-d-bugs
mailing list