www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14226] New: invalid Runtime.traceHandler setup


          Issue ID: 14226
           Summary: invalid Runtime.traceHandler setup
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: ketmar ketmar.no-ip.org

in module `core.runtime` at line 50 module constructor for setting up
`Runtime.traceHandler` is declared as `static`, whereas tracehandler variable
is `__gshared`. so custom trace handler will be reset on each new thread
creation. i believe that module ctor must be `shared static` here.

Feb 26 2015