Revert "Change exception tracer to use per-thread caching in libunwind"
[folly.git] / folly / experimental / symbolizer / Symbolizer.cpp
index f7e0d59d232abe291385182c18735fd66659fd50..70d5a51f46b038709c27eb9ea1dbffbe2c653313 100644 (file)
@@ -403,23 +403,5 @@ std::ostream& operator<<(std::ostream& out, const FrameInfo& ainfo) {
   return out;
 }
 
-namespace {
-
-struct Init {
-  Init();
-};
-
-Init::Init() {
-  // Don't use global caching -- it's slow and leads to lock contention.  (And
-  // it's made signal-safe using sigprocmask to block all signals while the
-  // lock is being held, and sigprocmask contends on a lock inside the kernel,
-  // too, ugh.)
-  unw_set_caching_policy(unw_local_addr_space, UNW_CACHE_PER_THREAD);
-}
-
-Init initializer;
-
-}  // namespace
-
 }  // namespace symbolizer
 }  // namespace folly