centralize cache-line alignment goo into CacheLocality
authorNathan Bronson <ngbronson@fb.com>
Fri, 6 Dec 2013 00:48:13 +0000 (16:48 -0800)
committerJordan DeLong <jdelong@fb.com>
Fri, 20 Dec 2013 21:05:21 +0000 (13:05 -0800)
commit9b9fb1d60d65ddbdf538851494f3899474b1dd17
tree567bcf658c8e4a9af401efe4d932eee463582e7c
parent7c3790caa0c3d69c1a1b2193786470c84ba02ef7
centralize cache-line alignment goo into CacheLocality

Summary:
The alignment requirements and details required to avoid false
sharing belong in CacheLocality, so this diff moves them there.

@override-unit-failures

Test Plan: fbmake runtests

Reviewed By: davejwatson@fb.com

FB internal diff: D1086090
folly/MPMCQueue.h
folly/detail/CacheLocality.h