Back out a26c9e7823e4 (bug 620291), didn't notice it was nanojit

This commit is contained in:
Phil Ringnalda 2011-02-06 09:32:24 -08:00
parent b6494031e8
commit b6d925bc1a

View File

@ -214,13 +214,13 @@ namespace nanojit
}
else {
CodeList* free_block = availblocks;
while (free_block->next != coalescedBlock) {
while ( free_block && free_block->next != coalescedBlock) {
NanoAssert(free_block->size() >= minAllocSize);
NanoAssert(free_block->isFree);
NanoAssert(free_block->next);
free_block = free_block->next;
}
NanoAssert(free_block->next == coalescedBlock);
NanoAssert(free_block && free_block->next == coalescedBlock);
free_block->next = coalescedBlock->next;
}
}