use mempool for ministack recycler

This commit is contained in:
Hieu Hoang 2016-02-25 15:48:58 +00:00
parent 8a4596ebd3
commit a43403a85e
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ void MiniStack::Clear()
Stack::Stack(const Manager &mgr)
:m_mgr(mgr)
,m_coll(MemPoolAllocator< std::pair<HypoCoverage, MiniStack*> >(mgr.GetPool()))
,m_miniStackRecycler()
,m_miniStackRecycler(MemPoolAllocator<MiniStack*>(mgr.GetPool()))
{
}

View File

@ -94,7 +94,7 @@ protected:
const Manager &m_mgr;
Coll m_coll;
std::deque<MiniStack*> m_miniStackRecycler;
std::deque<MiniStack*, MemPoolAllocator<MiniStack*> > m_miniStackRecycler;
};