mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 06:00:35 +03:00
![]() This fixes the unittests for LDC on ARM (with enabled optimizations). The code used to store a class instance (whose size isn't padded) right before some buffer, without any padding inbetween. The buffer is thus susceptible to misalignment; e.g., `BacktrackingMatcher.dupTo()` casts the buffer from `void[]` to `size_t[]` (in `initExternalMemory()`), simply assuming an alignment >= `size_t.alignof`, which only holds if the prepended class instance size is a multiple of that (as `malloc()` returns a sufficiently aligned block already in this case). |
||
---|---|---|
.. | ||
internal | ||
package.d |