Check CachelinePadded alignment requirement dynamically
Summary: It's possible, but not required, for platforms to support alignment requirements greater than std::max_align_t. For example, on some 32-bit platforms (e.g. iPhone armv7), std::max_align_t is only 4, but std::atomic<unsigned long long> has an alignment requirement of 8. Check for alignment at runtime instead of compile time to avoid spurious static assertion failures. Reviewed By: nbronson Differential Revision: D17488704 fbshipit-source-id: 54cd7c2d7aec4f7f93e5fa6d62f8237f66a6c018
Showing
Please register or sign in to comment