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: [email protected]
          Reporter: [email protected]

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();
        }
}

--

Reply via email to