__vector(ubyte[32]) misalignment

Bruce Carneal bcarneal at gmail.com
Sun Aug 9 11:53:30 UTC 2020


On Sunday, 9 August 2020 at 05:49:23 UTC, user1234 wrote:
> On Sunday, 9 August 2020 at 01:56:54 UTC, Bruce Carneal wrote:
>> On Sunday, 9 August 2020 at 01:03:51 UTC, Bruce Carneal wrote:
>>> 
>>
>> Manually managing the alignment eliminated the seg faulting.
>>
>> Additionally, I found that std.experimental.mallocator 
>> Mallocator.alignment is 16.
>>
>> So, is the misalignment baked in at this point?
>
> there's AlignedMallocator that allows to overrides the 
> "platformAlignment".
> To get vector spece Mallocator is indeed a bad choice.

Yep.


More information about the Digitalmars-d-learn mailing list