fix allocate/free size mismatch in interpret.cpp

This was causing a crash every time the VM was run when build using
mode=debug and process=interpret.
This commit is contained in:
Joel Dice 2012-07-31 20:02:03 +00:00
parent a97c5728bb
commit b023f5a2aa
2 changed files with 2 additions and 1 deletions

View File

@ -3166,7 +3166,7 @@ class MyProcessor: public Processor {
} }
virtual void dispose(vm::Thread* t) { virtual void dispose(vm::Thread* t) {
t->m->heap->free(t, sizeof(Thread)); t->m->heap->free(t, sizeof(Thread) + t->m->stackSizeInBytes);
} }
virtual void dispose() { virtual void dispose() {

View File

@ -904,6 +904,7 @@ class MySystem: public System {
} }
virtual void abort() { virtual void abort() {
*static_cast<void**>(0) = 0;
::abort(); ::abort();
} }