fix build breakage in stress mode

This commit is contained in:
Joel Dice 2008-01-23 09:55:29 -07:00
parent c3ce201a59
commit 73ba3fcef7

View File

@ -482,9 +482,9 @@ void
postCollect(Thread* t)
{
#ifdef VM_STRESS
t->allocator.free(t->defaultHeap, Thread::HeapSizeInBytes);
t->m->heap->free(t->defaultHeap, Thread::HeapSizeInBytes, false);
t->defaultHeap = static_cast<uintptr_t*>
(t->allocator.allocate(Thread::HeapSizeInBytes));
(t->m->heap->allocate(Thread::HeapSizeInBytes, false));
#endif
t->heap = t->defaultHeap;