UnboundedQueue: Use hazptr_obj_batch
authorMaged Michael <magedmichael@fb.com>
Wed, 10 Jan 2018 20:43:40 +0000 (12:43 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 10 Jan 2018 20:55:38 +0000 (12:55 -0800)
commit2d80d4e0d0ea2f473639de5adfd24d22577a3a33
tree25e277349e4ca59b9fdd0c4247871a77c4b0c06f
parent79a92dfdb43fefd774ea8f51bd6b9a2b9d0ce137
UnboundedQueue: Use hazptr_obj_batch

Summary: Manage retirement of removed segments using hazptr_obj_batch in order to reduce the chances of fragmenting related segments across thread local lists of retired objects of many threads, which could lead to unnecessarily high memory usage.

Reviewed By: djwatson

Differential Revision: D6686697

fbshipit-source-id: 0d786c0f9e0bac2c44183ed3da21619e1feb3d52
folly/concurrency/UnboundedQueue.h
folly/concurrency/test/DynamicBoundedQueueTest.cpp