[Issue 20303] New: Memory leak in core.thread
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 16 07:58:21 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=20303
Issue ID: 20303
Summary: Memory leak in core.thread
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: major
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: adam.furtenbach at gmail.com
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();
}
}
--
More information about the Digitalmars-d-bugs
mailing list