mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
fix code ordering bug in MyProcessor::getStackTrace which caused the stack trace footprint calculation to be inaccurate
This commit is contained in:
parent
fdfeabbb37
commit
23572b58bd
@ -5053,8 +5053,6 @@ class MyProcessor: public Processor {
|
|||||||
Visitor(MyThread* t, MyThread* target): t(t), target(target) { }
|
Visitor(MyThread* t, MyThread* target): t(t), target(target) { }
|
||||||
|
|
||||||
virtual void visit(void* ip, void* base, void* stack) {
|
virtual void visit(void* ip, void* base, void* stack) {
|
||||||
ensure(t, traceSize(target));
|
|
||||||
|
|
||||||
void* oldIp = target->ip;
|
void* oldIp = target->ip;
|
||||||
void* oldBase = target->base;
|
void* oldBase = target->base;
|
||||||
void* oldStack = target->stack;
|
void* oldStack = target->stack;
|
||||||
@ -5090,6 +5088,8 @@ class MyProcessor: public Processor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ensure(t, traceSize(target));
|
||||||
|
|
||||||
t->tracing = true;
|
t->tracing = true;
|
||||||
trace = makeTrace(t, target);
|
trace = makeTrace(t, target);
|
||||||
t->tracing = false;
|
t->tracing = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user