[Issue 10826] [GC] Should the D GC allocate double4[] aligned to 32 bytes?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 28 19:04:44 UTC 2022


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

kinke <kinke at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke at gmx.net
           Severity|enhancement                 |critical

--- Comment #5 from kinke <kinke at gmx.net> ---
Raising the importance to critical. Greater-than-natural alignments are
respected by LDC pretty much everywhere AFAIK (stack and globals) - except for
druntime's GC. And are used for optimizations. It's pretty embarrassing that
people cannot safely GC-allocate arrays of vectors > 128 bit without
potentially hitting segfaults (incl. @safe code obviously).

And it's obviously not limited to vectors or arrays, but applies to all GC
allocations of types with alignment > 16.

--


More information about the Digitalmars-d-bugs mailing list