[Issue 14226] New: invalid Runtime.traceHandler setup

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Feb 26 05:29:50 PST 2015


https://issues.dlang.org/show_bug.cgi?id=14226

          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 at puremagic.com
          Reporter: ketmar at 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.

--


More information about the Digitalmars-d-bugs mailing list