Plan for D

Max Haughton maxhaton at gmail.com
Sun May 16 18:39:50 UTC 2021


On Sunday, 16 May 2021 at 13:01:58 UTC, Berni44 wrote:
> On Sunday, 16 May 2021 at 03:58:15 UTC, Mike Parker wrote:
>> dmd doesn't release memory, either.
>
> That's the missing puzzle piece. Since about two months I 
> wonder why running the unittests on phobos with 3 cores on my 
> computer practically uses 4 cores. I meanwhile found out, that 
> the 4th core is the swap demon and that it happens when the 
> regex modules (containing a lot of memory consuming unittests) 
> are compiled...

Oh yes. If you look at ASan's output (compile with ldc or gdc) on 
a typical dmd test suite run you're looking at hundreds of 
thousands of lines worth of memory leaks (some of this is from 
the GC, others not). This isn't a huge problem in the normal case 
however the memory allocation/access patterns are not pretty when 
the going gets tough.


More information about the Digitalmars-d mailing list