Add hazptr_obj_batch
authorMaged Michael <magedmichael@fb.com>
Wed, 10 Jan 2018 16:40:46 +0000 (08:40 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 10 Jan 2018 16:50:52 +0000 (08:50 -0800)
commit028415ba5c1fee579d249a97dd49752fe3c7348b
tree8d227f82e8456d85c57cd56971638e840a216209
parente7f26d60480810d6c2b724130e35761d75af33fc
Add hazptr_obj_batch

Summary: Provide capability for custom batching retirement of objects, for example object that belong to the same data structure, to avoid the risk fragmenting related objects across thread local lists of retired objects of many threads, which could lead to unnecessarily high memory usage.

Reviewed By: djwatson

Differential Revision: D6686603

fbshipit-source-id: fadcade73e71170ef1bcec221c4da6f4ddeecff5
folly/experimental/hazptr/hazptr-impl.h
folly/experimental/hazptr/hazptr.h