diff --git a/src/machine.cpp b/src/machine.cpp index d446d7384e..57fced2806 100644 --- a/src/machine.cpp +++ b/src/machine.cpp @@ -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 - (t->allocator.allocate(Thread::HeapSizeInBytes)); + (t->m->heap->allocate(Thread::HeapSizeInBytes, false)); #endif t->heap = t->defaultHeap;