HaxeFoundation / HaxeFoundation/hxcpp

Align array items to 8 bytes

Open
#1,158 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
330
Forks
227
Avg merge
2d 16h
Merged PRs (30d)
18

Description

How can I get array items aligned to 8 bytes? Since all the items are pointers, without 8 byte alignment ubsan complains about "load of misaligned address". I tried `-D HXCPP_ALIGN_ALLOC` but it didn't help. I still often get memory addresses for `array->getBase()` divisible by 4 but not 8 and then ubsan complains.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.