This is an archive of the discontinued LLVM Phabricator instance.

Fix the guaranteed alignment of memory returned by malloc/new on Darwin
ClosedPublic

Authored by ahatanak on Feb 2 2021, 5:31 PM.

Details

Summary

The guaranteed alignment is 16 bytes on Darwin.

rdar://73431623

Diff Detail

Event Timeline

ahatanak created this revision.Feb 2 2021, 5:31 PM
ahatanak requested review of this revision.Feb 2 2021, 5:31 PM

It's 16 bytes on all Darwin platforms, including 32-bit.

ahatanak updated this revision to Diff 321251.Feb 3 2021, 3:57 PM
ahatanak edited the summary of this revision. (Show Details)

Make the alignment 16 bytes on 32-bit systems too.

rjmccall accepted this revision.Feb 3 2021, 4:26 PM

LGTM

This revision is now accepted and ready to land.Feb 3 2021, 4:26 PM
This revision was landed with ongoing or failed builds.Feb 3 2021, 7:41 PM
This revision was automatically updated to reflect the committed changes.