Bug 20303 – Memory leak in core.thread

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2019-10-16T07:58:21Z
Last change time
2019-12-18T07:37:35Z
Keywords
pull
Assigned to
No Owner
Creator
Adam Furtenbach

Comments

Comment #0 by adam.furtenbach — 2019-10-16T07:58:21Z
Running the following code will continuously leak small bits of memory, 2 GiB RSS after an hour. import core.thread; void main() { void delegate() action = () {}; while (true) { auto thread = new Thread(action); thread.start().join(); } }
Comment #1 by dlang-bot — 2019-12-11T13:46:47Z
@jpiles created dlang/druntime pull request #2867 "Fix Issue 20303 - Memory leak in core.thread" fixing this issue: - Fix Issue 20303 - Memory leak in core.thread https://github.com/dlang/druntime/pull/2867
Comment #2 by dlang-bot — 2019-12-18T07:37:35Z
dlang/druntime pull request #2867 "Fix Issue 20303 - Memory leak in core.thread" was merged into master: - ccadf46283ab665782946c5c7edcd74806f3ad63 by Joan Piles: Fix Issue 20303 - Memory leak in core.thread https://github.com/dlang/druntime/pull/2867