Bug 12328 – [IMPLEMENTATION] Target::critsecsize should be a runtime or library inferred value
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-09T06:00:38Z
Last change time
2022-01-30T19:39:13Z
Keywords
GDC
Assigned to
No Owner
Creator
Iain Buclaw
Comments
Comment #0 by ibuclaw — 2014-03-09T06:00:38Z
This target hook is a pain, as there's no way to reasonably determine what this value should be - isLinux or isLP64 for instance is not enough information because you could be compiling for a setup that uses an alternate threading library, or have disabled threading completely.
So I propose that we remove this hook and instead rely on druntime to handle this feature solely, ideally by providing an alternative library call that doesn't require a buffer passed to it.