[Issue 4400] New: D2 GC doesn't allocate with 16 bytes alignment

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 28 04:47:53 PDT 2010


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: sean at invisibleduck.org
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at 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: -------


More information about the Digitalmars-d-bugs mailing list