www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [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



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: -------
Mar 03 2013