include Thread::backupHeapIndex in heap footprint calculation

This commit is contained in:
Joel Dice 2008-07-11 19:21:53 -06:00
parent b1f24079ec
commit e31f795661

View File

@ -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);