mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
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:
parent
a97c5728bb
commit
b023f5a2aa
@ -3166,7 +3166,7 @@ class MyProcessor: public Processor {
|
||||
}
|
||||
|
||||
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() {
|
||||
|
@ -904,6 +904,7 @@ class MySystem: public System {
|
||||
}
|
||||
|
||||
virtual void abort() {
|
||||
*static_cast<void**>(0) = 0;
|
||||
::abort();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user