This is an archive of the discontinued LLVM Phabricator instance.

[MS] Increase default new alignment for win64 and test it
ClosedPublic

Authored by rnk on Nov 20 2017, 4:49 PM.

Details

Summary

This raises STDCPP_DEFAULT_NEW_ALIGNMENT from 16 to 32 on Win64.
This matches platforms that follow the usual 2 * sizeof(void*)
alignment requirement for malloc. We might want to consider making that
the default rather than relying on long double alignment.

Fixes PR35356

Diff Detail

Repository
rL LLVM

Event Timeline

rnk created this revision.Nov 20 2017, 4:49 PM
rsmith accepted this revision.Nov 20 2017, 5:12 PM

Looks fine to me, but I think the alignment numbers in your summary are off by a factor of two.

This revision is now accepted and ready to land.Nov 20 2017, 5:12 PM
This revision was automatically updated to reflect the committed changes.