#endif
m_liveBytes += bytes;
checkConsistency();
- ASSERT(m_liveBytes <= CopiedBlock::blockSize);
+ ASSERT(m_liveBytes <= m_capacity);
if (isPinned())
return;
}
if (!m_workList)
- m_workList = adoptPtr(new CopyWorkList(Heap::heap(owner)->blockAllocator()));
+ m_workList = std::make_unique<CopyWorkList>();
m_workList->append(CopyWorklistItem(owner, token));
}