[Issue 15270] New: use TLS to store Thread.getThis (pthread_getspecific causes heavy lock contention)
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Fri Oct 30 20:32:35 PDT 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15270
          Issue ID: 15270
           Summary: use TLS to store Thread.getThis (pthread_getspecific
                    causes heavy lock contention)
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: code at dawg.eu
Before 2.066 Thread.getThis() was stored in a plain TLS variable.
In order to fix issue 11981 this was changed to use pthread_getspecific.
Apparently this is a huge performance issue (see
https://github.com/D-Programming-Language/druntime/pull/1419).
--
    
    
More information about the Digitalmars-d-bugs
mailing list