Commit 68c24721 authored by Dan Melnic's avatar Dan Melnic Committed by Facebook Github Bot

Workaround for a TSAN fork deadlock

Summary: Workaround for a TSAN fork deadlock

Reviewed By: kevin-vigor

Differential Revision: D20107616

fbshipit-source-id: df4d6222f63131e49fc1e831ec81d6441269b1f4
parent ced43fb7
......@@ -30,6 +30,7 @@
#include <folly/SingletonThreadLocal.h>
#include <folly/portability/SysSyscall.h>
#include <folly/portability/Unistd.h>
#include <folly/synchronization/SanitizeThread.h>
#ifdef FOLLY_SANITIZE_ADDRESS
......@@ -84,6 +85,7 @@ auto FiberManager::FrozenOptions::create(const Options& options) -> ssize_t {
/* static */ FiberManager*& FiberManager::getCurrentFiberManager() {
struct Tag {};
folly::annotate_ignore_thread_sanitizer_guard g(__FILE__, __LINE__);
return SingletonThreadLocal<FiberManager*, Tag>::get();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment