Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align array items to 8 bytes #1158

Open
singpolyma opened this issue Oct 23, 2024 · 1 comment
Open

Align array items to 8 bytes #1158

singpolyma opened this issue Oct 23, 2024 · 1 comment

Comments

@singpolyma
Copy link

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.

@singpolyma
Copy link
Author

Hmm. It seems this may be fixed in the latest github release. Any plans to update the haxelib release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant