folly: fixes for use with `-fvisibility-inlines-hidden`
authorAndrew Gallagher <andrewjcg@fb.com>
Tue, 18 Oct 2016 22:50:58 +0000 (15:50 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Tue, 18 Oct 2016 22:53:46 +0000 (15:53 -0700)
commit1a48bcd9c77353535820239dff3e7f5f7c1e93bb
treea47bb71a19ebf79ed953ac849a122da225e11f05
parentb74eb888a2090eb64a552f89cbea730bc9b150cb
folly: fixes for use with `-fvisibility-inlines-hidden`

Summary:
- Annotate non-`const` static locals in inline functions which don't require
  a single copy be used globally at runtime.
- Move implmentation from header file to source file (to avoid multiple
  copies at runtime).
- Mark a non-stateful static local as `const` to it easy to ignore when
  searching for problematic static locals.

Reviewed By: yfeldblum

Differential Revision: D4010101

fbshipit-source-id: 3be94a5dc5b7029a26e11b2145c0d41968979a5c
folly/CPortability.h
folly/Malloc.h
folly/Portability.h
folly/Singleton-inl.h
folly/Singleton.h
folly/detail/ThreadLocalDetail.h
folly/io/async/Request.cpp
folly/io/async/Request.h