Added another condition to if statement for allocChunk_.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@298 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
6981c5931a
commit
fdd5e4a158
1 changed files with 3 additions and 4 deletions
|
@ -623,7 +623,7 @@ void FixedAllocator::DoDeallocate(void* p)
|
||||||
assert( lastChunk->HasAvailable( numBlocks_ ) );
|
assert( lastChunk->HasAvailable( numBlocks_ ) );
|
||||||
lastChunk->Release();
|
lastChunk->Release();
|
||||||
chunks_.pop_back();
|
chunks_.pop_back();
|
||||||
if ( allocChunk_->IsFilled() )
|
if ( ( allocChunk_ == lastChunk ) || allocChunk_->IsFilled() )
|
||||||
allocChunk_ = deallocChunk_;
|
allocChunk_ = deallocChunk_;
|
||||||
}
|
}
|
||||||
emptyChunk_ = deallocChunk_;
|
emptyChunk_ = deallocChunk_;
|
||||||
|
@ -813,9 +813,8 @@ void SmallObjAllocator::Deallocate( void * p )
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// $Log$
|
// $Log$
|
||||||
// Revision 1.8 2005/10/13 22:41:05 rich_sposato
|
// Revision 1.9 2005/10/13 22:55:46 rich_sposato
|
||||||
// Moved emptyChunk_ assignment because code depends upon it. And added if
|
// Added another condition to if statement for allocChunk_.
|
||||||
// statement before line where allocChunk_ is assigned.
|
|
||||||
//
|
//
|
||||||
// Revision 1.7 2005/09/27 00:40:30 rich_sposato
|
// Revision 1.7 2005/09/27 00:40:30 rich_sposato
|
||||||
// Moved Chunk out of FixedAllocator class so I could improve efficiency for
|
// Moved Chunk out of FixedAllocator class so I could improve efficiency for
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue