Leak folly::SingletonVault
authorAndrii Grynenko <andrii@fb.com>
Thu, 2 Oct 2014 03:34:27 +0000 (20:34 -0700)
committerAndrii Grynenko <andrii@fb.com>
Wed, 15 Oct 2014 00:53:14 +0000 (17:53 -0700)
commitf0c0e8d28099e9d88b9f23d72f2df213f349eb5e
tree3c4924567db1600f7a85983879e1e9f1ea043fe9
parent21487671f626f3800103aaa8e8ee8c1cadf629f1
Leak folly::SingletonVault

Summary:
This will ensure SingletonVault is always available. It matters for singletons, not managed by folly::Singleton. Singletons in it will actually be destroyed via static SingletonVaultDestructor.

This does the same as D1591270 (which got reverted), but doesn't change destruction order.

Test Plan:
Run tests which were broken by D1591270

Reviewed By: chip@fb.com

Subscribers: njormrod

FB internal diff: D1594898
folly/experimental/Singleton.cpp
folly/experimental/Singleton.h