diff --git a/src/compile.cpp b/src/compile.cpp index 91c2a7b983..a954959885 100644 --- a/src/compile.cpp +++ b/src/compile.cpp @@ -5107,7 +5107,7 @@ compile(MyThread* t, object method) if (methodVirtual(t, method)) { classVtable(t, methodClass(t, method), methodOffset(t, method)) - = &singletonValue(t, compiled, 0); + = &singletonValue(t, methodCompiled(t, method), 0); } } } diff --git a/src/machine.cpp b/src/machine.cpp index fd52aa486b..8703d103c4 100644 --- a/src/machine.cpp +++ b/src/machine.cpp @@ -168,7 +168,7 @@ killZombies(Thread* t, Thread* o) unsigned footprint(Thread* t) { - unsigned n = t->heapOffset + t->heapIndex; + unsigned n = t->heapOffset + t->heapIndex + t->backupHeapIndex; for (Thread* c = t->child; c; c = c->peer) { n += footprint(c);