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