Core-local allocator
authorDave Watson <davejwatson@fb.com>
Tue, 6 Jun 2017 21:06:53 +0000 (14:06 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 6 Jun 2017 21:21:27 +0000 (14:21 -0700)
commit5ba3126fb76f1d81100b34e429c79cd21f8cd142
tree4f52f04488a1fb9b475341ecbaa341cb1728fcbd
parentc797a08c3b5b0bd01b6d3dce214c32509ef22093
Core-local allocator

Summary:
Adds a core-local allocator to CacheLocality.  Multiple objects using
cache locality may share the same allocator, and allocate things less than
cacheline sized, without incurring additional false-sharing overhead.

Reviewed By: nbronson, ot

Differential Revision: D5139886

fbshipit-source-id: a9804662d6339829a12e0791f418dabd9678f1bf
folly/concurrency/CoreCachedSharedPtr.h
folly/detail/CacheLocality.cpp
folly/detail/CacheLocality.h
folly/test/CacheLocalityTest.cpp