Make folly pass TSAN checks
authorDave Watson <davejwatson@fb.com>
Wed, 26 Apr 2017 17:04:04 +0000 (10:04 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 26 Apr 2017 17:05:11 +0000 (10:05 -0700)
commita0c640e8e2ff45bc43b9f8d96cd108bb66635bee
treee2039b69d57007b4dce5ce5d9ded292c2a34cdfe
parent92f554a525fc603232cc80b4603e4d43ec6b50de
Make folly pass TSAN checks

Summary:
Currently, contbuild has a blanket TSAN suppression for folly.
Fix PicoSpinLock instead

This should fix TSAN errors as an alternative to D4781776

Some of the tests even had TSAN errors, fixed those.

Reviewed By: davidtgoldblatt

Differential Revision: D4795284

fbshipit-source-id: 9f0fc6868399da2f86be355ce3c081990260a649
folly/PicoSpinLock.h
folly/test/SmallLocksTest.cpp
folly/test/SpinLockTest.cpp