hxcpp icon indicating copy to clipboard operation
hxcpp copied to clipboard

Align array items to 8 bytes

Open singpolyma opened this issue 1 year ago • 1 comments

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 avatar Oct 23 '24 04:10 singpolyma

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

singpolyma avatar Oct 23 '24 05:10 singpolyma