move StaticMeta::onThreadExit into libfolly_thread_local.so
authorEric Niebler <eniebler@fb.com>
Wed, 16 Mar 2016 16:54:38 +0000 (09:54 -0700)
committerFacebook Github Bot 1 <facebook-github-bot-1-bot@fb.com>
Wed, 16 Mar 2016 17:05:27 +0000 (10:05 -0700)
commit946d061defe9702e4e449bd6e828ed0a016b5364
tree0a95e69f95eb5ced1f9aeb0f7d3671a27571ef64
parentfed5dff0fb6f0a88045fc5a3b089f7740e61328c
move StaticMeta::onThreadExit into libfolly_thread_local.so

Summary: Fix folly/test:thread_local_test in the shared library scenario by moving onThreadExit into libfolly_thread_local.so, avoiding the crash when a user's .so is dlclosed.

Reviewed By: andriigrynenko

Differential Revision: D2919287

fb-gh-sync-id: ecc4220fd40203289366eb1a6391b8b6d971e65f
shipit-source-id: ecc4220fd40203289366eb1a6391b8b6d971e65f
folly/ThreadLocal.h
folly/detail/ThreadLocalDetail.cpp
folly/detail/ThreadLocalDetail.h