Bug 13672 – core.thread.Thread.start holds "slock" unnecessarily

Status
NEW
Severity
normal
Priority
P3
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-11-02T17:02:14Z
Last change time
2024-12-07T13:34:29Z
Assigned to
No Owner
Creator
Sean Kelly
Moved to GitHub: dmd#17136 →

Comments

Comment #0 by sean — 2014-11-02T17:02:14Z
Looking at Thread.start, the bulk of the body of this function holds the global "slock" and I can't figure out why. Most or all of the calls inside this lock are either local operations or are already atomic. What actually needs to be made mutually exclusive here? This seems like an easy candidate for optimization.
Comment #1 by robert.schadek — 2024-12-07T13:34:29Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17136 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB