Call onRecycle after element is marked as deallocated in IndexedMemPool
Summary: Make `IndexedMemPool` call `Traits::onRecycle` on the element just before it is marked as deallocated. This mirrors the allocation behavior implemented in D5177462 and simplifies preventing access to recycled elements (the client just needs to check `isAllocated` before accessing the element). Reviewed By: nbronson Differential Revision: D5275283 fbshipit-source-id: 58365b5b7b32b07fa56529c476078f241fc20811
Showing
Please register or sign in to comment