Use MemoryManager to allocate Semaphore resources
commit8610187ac62961609352a023612e6f918c5eaeab
authorEdwin Smith <smith@fb.com>
Thu, 4 Dec 2014 21:03:07 +0000 (4 13:03 -0800)
committerhhvm-bot <hhvm-bot@fb.com>
Fri, 5 Dec 2014 17:41:56 +0000 (5 09:41 -0800)
tree6c58ad62f57594560a3795e4a7b31c90bcc3388b
parentdcb1edb726bdaffbd77d33336c7320d21a3b7007
Use MemoryManager to allocate Semaphore resources

Summary: Instead of ~Semaphore calling sweep, move the cleanup code
to ~Semaphore and let the default sweep function invoke it.
(in this case, it's safe to do that).

Reviewed By: @jdelong

Differential Revision: D1719986
hphp/runtime/ext/ipc/ext_ipc.cpp