www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20567] New: GC should not start threads for parallel marking

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

          Issue ID: 20567
           Summary: GC should not start threads for parallel marking in
                    simple programs
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: r.sagitario gmx.de

A simple program like

void main()
{
    char[] buf = new char[2048];
}

runs 3 collections and starts multiple threads for parallel marking. This
should be avoided by default.

--
Feb 08