Detect data race in IndexedMemPool
authorMaged Michael <magedmichael@fb.com>
Thu, 9 Mar 2017 19:21:50 +0000 (11:21 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 9 Mar 2017 19:34:24 +0000 (11:34 -0800)
commit839b3f3171cefdb81cd189217184975e5fdc70df
tree2299e3fdaf4fc08312eb4da8feaa34d927215c6a
parentfb9776fcdb9676e1bfd06afecc8f8c9e74f28439
Detect data race in IndexedMemPool

Summary: IndexedMemPool uses regular memory for the global and local next links. There is a data race as there can be concurrent reads and writes of such links. Added a test for data races.

Reviewed By: nbronson

Differential Revision: D4680286

fbshipit-source-id: 9ef3ed439b9df07d69afe570e516c146caa53a6c
folly/test/IndexedMemPoolTest.cpp