www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19535] New: Enable GC in compiler

https://issues.dlang.org/show_bug.cgi?id=19535

          Issue ID: 19535
           Summary: Enable GC in compiler
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: dhasenan gmail.com

The compiler currently has a major memory strategy of allocate-and-never-free.
Partly because of this, it often requires very large amounts of RAM to compile
things.

The compiler's not ready to just flip the switch and enable garbage collection,
so this will take some doing.

1. Add a makefile flag to build with GC enabled. This will make testing easier.
2. Build a lot of code (eg every version of every dub project) with this
compiler.
3. Track down related bugs.
4. Fix them.

--
Dec 31