Bug 17431 – GCBits should be @nogc to prevent deadlocks

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-05-25T06:46:08Z
Last change time
2018-12-30T22:29:28Z
Assigned to
No Owner
Creator
Martin Nowak

Comments

Comment #0 by code — 2017-05-25T06:46:08Z
To not trigger recursive locks of the GC, e.g. when adding a new Pool. Vladimir found a deadlock, apparently caused by an onOutOfMemory call in GCBits.alloc.
Comment #1 by github-bugzilla — 2018-12-30T22:29:27Z
Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/0eccb23e7dcd5c3b8e4ebde5c5ab78bd17456108 fix Issue 17431 - GCBits should be @nogc to prevent deadlocks https://github.com/dlang/druntime/commit/8b02a8648dc00c8d15845ac87465bbfe616b4f00 Merge pull request #2427 from rainers/issue17431 fix Issue 17431 - GCBits should be @nogc to prevent deadlocks merged-on-behalf-of: Nicholas Wilson <[email protected]>