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: nob...@puremagic.com Reporter: c...@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). --