Print type of singleton that is requested after destruction
authorMisha Shneerson <mshneer@fb.com>
Fri, 24 Jul 2015 18:57:21 +0000 (11:57 -0700)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Fri, 24 Jul 2015 20:22:15 +0000 (13:22 -0700)
commit29d3553cca2cfca3238e2d675a0cedca03528509
tree8e8230afe0a470de472aef2f5cfcfca9c2a8704a
parenta4fc31fc259c144457a3e81e55f4e4160692d6b9
Print type of singleton that is requested after destruction

Summary: As titled
Trying to troubleshoot shutdown problems in HHVM and I see:
  EventBase::runAfterDelay() callback threw St13runtime_error exception: Raw pointer to a singleton requested after its destruction.
Would be much easier to troubleshoot if I know what is it being requested.

Reviewed By: @chipturner

Differential Revision: D2274497
folly/Singleton-inl.h