http://d.puremagic.com/issues/show_bug.cgi?id=4400

           Summary: D2 GC doesn't allocate with 16 bytes alignment
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: s...@invisibleduck.org
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2010-06-28 04:47:19 PDT ---
I think the D GC is supposed to allocate dynamic arrays with a 16 alignment,
but this program on dmd 2.047-Windows shows they are aligned to 8 if length >
255:


void main() {
    auto a = new double[256];
    assert((cast(size_t)a.ptr % 16) == 8);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to