From 782325fde921b859ef6abec57eaee880d7d0d938 Mon Sep 17 00:00:00 2001 From: Andrew Gallagher Date: Mon, 7 Nov 2016 16:10:41 -0800 Subject: [PATCH] Mark implicitly inlined static locals with default visibility Summary: These functions contain static locals which need to be exported to the global dynamic symbol table to get deduplicated at runtime. Since using `-fvisibility-inlines-hidden` demotes the visibility of these static locals, explicitly tag them. Reviewed By: yfeldblum Differential Revision: D4139154 fbshipit-source-id: 08b81721c6c945ac5556472481ae771d0eeb5f88 --- folly/fibers/FiberManagerInternal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/folly/fibers/FiberManagerInternal.h b/folly/fibers/FiberManagerInternal.h index 28c74db6..254c83cc 100644 --- a/folly/fibers/FiberManagerInternal.h +++ b/folly/fibers/FiberManagerInternal.h @@ -25,6 +25,7 @@ #include #include +#include #include #include #include @@ -253,7 +254,7 @@ class FiberManager : public ::folly::Executor { T& local(); template - static T& localThread(); + FOLLY_EXPORT static T& localThread(); /** * @return How many fiber objects (and stacks) has this manager allocated. -- 2.34.1