2011-01-29 Geoffrey Garen <ggaren@apple.com>
[WebKit.git] / Source / JavaScriptCore / runtime / MarkedSpace.cpp
index aeb520f6a236b725638fba48c4635df6894b569d..f26e4f2d25ab1127d768ef23f1efca27940c1fe6 100644 (file)
@@ -150,7 +150,7 @@ void* MarkedSpace::allocate(size_t s)
                 ++m_heap.nextCell;
                 return cell;
             }
-            block->marked.advanceToNextPossibleFreeCell(m_heap.nextCell);
+            m_heap.nextCell = block->marked.nextPossiblyUnset(m_heap.nextCell);
         } while (m_heap.nextCell != HeapConstants::cellsPerBlock);
         m_heap.nextCell = 0;
     } while (++m_heap.nextBlock != m_heap.usedBlocks);