From 8edf04da5cc42f5d417af9c4e489e9769f5d7927 Mon Sep 17 00:00:00 2001 From: Pavlo Kushnir Date: Mon, 29 Feb 2016 12:02:27 -0800 Subject: [PATCH] Fix SingletonThreadLocal Summary: it's really thread local at this point :) Reviewed By: jmswen Differential Revision: D2989668 fb-gh-sync-id: 423b9214922c92318181a62c583f58cd204b52e3 shipit-source-id: 423b9214922c92318181a62c583f58cd204b52e3 --- folly/SingletonThreadLocal.h | 1 - 1 file changed, 1 deletion(-) diff --git a/folly/SingletonThreadLocal.h b/folly/SingletonThreadLocal.h index e073fecd..f3b6296c 100644 --- a/folly/SingletonThreadLocal.h +++ b/folly/SingletonThreadLocal.h @@ -38,7 +38,6 @@ class SingletonThreadLocal { static T& get() { #ifdef FOLLY_TLS - *localPtr() = nullptr; if (UNLIKELY(*localPtr() == nullptr)) { *localPtr() = &(**SingletonT::get()); } -- 2.34.1