From e31f795661e685c8b20c19b7c650b6c888cdb506 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 11 Jul 2008 19:21:53 -0600 Subject: [PATCH] include Thread::backupHeapIndex in heap footprint calculation --- src/machine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);