Fix ASAN failures in OBCClient
Summary: This also adds a dependency from all folly::Singletons on RequestContext. Better fix would probaly be to switch RequestContext to be managed by folly::Singleton, however that would require us to switch all singletons which use it to be folly::Singletons too. Facebook: Making sure we initialize SR singletons when OBCClient singleton is created, so that SR is destoyed after OBCClient. Test Plan: fbconfig -r --sanitize=address --platform-all=gcc-4.8.1-glibc-2.17 dragon/ fbmake runtests Reviewed By: meyering@fb.com, davejwatson@fb.com Subscribers: trunkagent, folly-diffs@, meyering FB internal diff: D1796847 Tasks: 5986816 Signature: t1:1796847:1421954531:e9ec177d5289a33c12fe0947426d89963c8e262c
Showing
Please register or sign in to comment