never destroy LifoSem's wait node pool
authorNathan Bronson <ngbronson@fb.com>
Tue, 13 Oct 2015 21:07:12 +0000 (14:07 -0700)
committerfacebook-github-bot-9 <folly-bot@fb.com>
Tue, 13 Oct 2015 21:20:19 +0000 (14:20 -0700)
commit1dee433c3440fe58e046de3b2e59dfd7f1a5cb35
tree5ca4f2878b545ff76c204b39090400785a65e188
parent5049c2b561d5eab6d3d686d4059c4317ef44263c
never destroy LifoSem's wait node pool

Summary: Some LifoSem-s survive late into program execution, which means
that destroying the IndexedMemPool that holds LifoSem waiter nodes can
cause crashes during program shutdown.

Reviewed By: @chadparry

Differential Revision: D2536597

fb-gh-sync-id: c9b3b73b61f2b8bdcb00d03f4c6d3daf24b267c3
folly/LifoSem.h
folly/test/LifoSemTests.cpp