fix code ordering bug in MyProcessor::getStackTrace which caused the stack trace footprint calculation to be inaccurate

This commit is contained in:
Joel Dice 2008-04-25 16:18:19 -06:00
parent fdfeabbb37
commit 23572b58bd

View File

@ -5053,8 +5053,6 @@ class MyProcessor: public Processor {
Visitor(MyThread* t, MyThread* target): t(t), target(target) { }
virtual void visit(void* ip, void* base, void* stack) {
ensure(t, traceSize(target));
void* oldIp = target->ip;
void* oldBase = target->base;
void* oldStack = target->stack;
@ -5090,6 +5088,8 @@ class MyProcessor: public Processor {
}
}
ensure(t, traceSize(target));
t->tracing = true;
trace = makeTrace(t, target);
t->tracing = false;