Improving DMD's memory management

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 3 08:04:59 PDT 2016


Hi,

I just saw something in the Vision 2016 H2 Document, which is 
very dear to me.
Improving the Memory Management in the compiler.

I think we need at least three different allocation primitives.
One for allocating Temporary Memory to which no one should keep 
references that have a longer lifetime then the memory-block 
itself.
One RC primitive.
And one primitive for virtually immutable memory.

One size fits all is not a solution that is going to scale.

When the details of those primitives are worked out replace _ALL_ 
malloc and free pairs.
With an appropriate allocation primitive.




More information about the Digitalmars-d mailing list