Use SharedMutex instead of MicroLock in AtomicObserver
Summary: The initialization of `folly::MicroLock` *looks* correct. MSAN instrumentation probably needs to be disabled in its implementation. Regardless, the main point of using `folly::MicroLock` was its low memory usage (1 byte). I'm now changing it to `folly::SharedMutex` (4 bytes) which will be the same size due to alignment. Although `folly::SharedMutex` is not ideal for write-only locks, we don't care too much about write performance here. Differential Revision: D25487925 fbshipit-source-id: 4c30650cf22dafbdaa9fea0c2252d29caf477d54
Showing
Please register or sign in to comment