use mempool for Stack

This commit is contained in:
Hieu Hoang 2016-02-25 15:42:21 +00:00
parent 44c41b3fe0
commit 8a4596ebd3
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -67,6 +67,7 @@ public:
typedef boost::unordered_map<HypoCoverage, MiniStack*
,boost::hash<HypoCoverage>
,std::equal_to<HypoCoverage>
,MemPoolAllocator< std::pair<HypoCoverage, MiniStack*> >
> Coll;