Aug 02, 2002: Fix in VicinityFind sent by Pavel Vozenilek
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@28 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
eebcd854c5
commit
95824ec34f
1 changed files with 4 additions and 0 deletions
|
@ -273,6 +273,9 @@ FixedAllocator::Chunk* FixedAllocator::VicinityFind(void* p)
|
|||
Chunk* loBound = &chunks_.front();
|
||||
Chunk* hiBound = &chunks_.back() + 1;
|
||||
|
||||
// Special case: deallocChunk_ is the last in the array
|
||||
if (hi == hiBound) hi = 0;
|
||||
|
||||
for (;;)
|
||||
{
|
||||
if (lo)
|
||||
|
@ -413,4 +416,5 @@ void SmallObjAllocator::Deallocate(void* p, std::size_t numBytes)
|
|||
// March 20: fix exception safety issue in FixedAllocator::Allocate
|
||||
// (thanks to Chris Udazvinis for pointing that out)
|
||||
// June 20, 2001: ported by Nick Thurn to gcc 2.95.3. Kudos, Nick!!!
|
||||
// Aug 02, 2002: Fix in VicinityFind sent by Pavel Vozenilek
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue