From: Andrew Gallagher Date: Tue, 8 Nov 2016 00:10:41 +0000 (-0800) Subject: Mark implicitly inlined static locals with default visibility X-Git-Tag: v2016.11.14.00~26 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=782325fde921b859ef6abec57eaee880d7d0d938;p=folly.git 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 --- 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.