digitalmars.D.bugs - [Issue 15270] New: use TLS to store Thread.getThis
- via Digitalmars-d-bugs (19/19) Oct 30 2015 https://issues.dlang.org/show_bug.cgi?id=15270
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 puremagic.com Reporter: code 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). --
Oct 30 2015