Bug 19492 – Warn / error if shared static ctors haven't finished and we start running thread-local static ctors

Status
NEW
Severity
enhancement
Priority
P4
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2018-12-15T15:24:33Z
Last change time
2024-12-07T13:39:01Z
Assigned to
No Owner
Creator
Neia Neutuladh
Moved to GitHub: dmd#17378 →

Comments

Comment #0 by dhasenan — 2018-12-15T15:24:33Z
https://forum.dlang.org/thread/[email protected] User started a thread in a shared static constructor. This predictably started running thread-local static constructors before the shared static constructors finished. It would be useful to have it be an error to start thread-local static constructors before shared static constructors finish.
Comment #1 by robert.schadek — 2024-12-07T13:39:01Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17378 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB