Add support for move operations on hazptr-holder. Other optimizations.
authorMaged Michael <magedmichael@fb.com>
Wed, 21 Jun 2017 22:56:45 +0000 (15:56 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 21 Jun 2017 23:06:13 +0000 (16:06 -0700)
commit703049c3e12de7abe34c44e3862f44e593cf2b90
treebf0c4dbe6ed12b20ca702d0c528564916137146e
parent60ab0b97abf9d70bde04edbd755d9176a7707967
Add support for move operations on hazptr-holder. Other optimizations.

Summary:
- Support empty hazptr_holder, move constructor and assignment operator
- Limit thread caching to the default domain to improve performance of thread caching
- Fix unnecessary calls to stats singleton
- Use the mprotect version of AsymmetricMemoryBarrier for reducing the overhead of bulkReclaim().
- Update read-side benchmark results

Reviewed By: djwatson

Differential Revision: D5292885

fbshipit-source-id: bc5713ac95492a7114e1e467e71d2278e64b165d
folly/experimental/hazptr/bench/HazptrBench.h
folly/experimental/hazptr/hazptr-impl.h
folly/experimental/hazptr/hazptr.h
folly/experimental/hazptr/test/HazptrTest.cpp