mirror of
https://github.com/corda/corda.git
synced 2025-02-02 17:21:06 +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) {
|
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() {
|
||||||
|
@ -904,6 +904,7 @@ class MySystem: public System {
|
|||||||
}
|
}
|
||||||
|
|
||||||
virtual void abort() {
|
virtual void abort() {
|
||||||
|
*static_cast<void**>(0) = 0;
|
||||||
::abort();
|
::abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user