mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
avoid uninitialized variable warnings in MyProcessor::callWithCurrentContinuation
This commit is contained in:
parent
db91c27441
commit
e165d5f3fd
@ -5968,12 +5968,6 @@ class MyProcessor: public Processor {
|
|||||||
virtual void callWithCurrentContinuation(Thread* vmt, object receiver) {
|
virtual void callWithCurrentContinuation(Thread* vmt, object receiver) {
|
||||||
MyThread* t = static_cast<MyThread*>(vmt);
|
MyThread* t = static_cast<MyThread*>(vmt);
|
||||||
|
|
||||||
object method;
|
|
||||||
object continuation;
|
|
||||||
void* base;
|
|
||||||
void* stack;
|
|
||||||
unsigned oldArgumentFootprint;
|
|
||||||
|
|
||||||
{ PROTECT(t, receiver);
|
{ PROTECT(t, receiver);
|
||||||
|
|
||||||
if (receiveMethod == 0) {
|
if (receiveMethod == 0) {
|
||||||
@ -6000,27 +5994,28 @@ class MyProcessor: public Processor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (LIKELY(t->exception == 0)) {
|
if (LIKELY(t->exception == 0)) {
|
||||||
method = findInterfaceMethod
|
object method = findInterfaceMethod
|
||||||
(t, receiveMethod, objectClass(t, receiver));
|
(t, receiveMethod, objectClass(t, receiver));
|
||||||
PROTECT(t, method);
|
PROTECT(t, method);
|
||||||
|
|
||||||
compile(t, ::codeAllocator(t), 0, method);
|
compile(t, ::codeAllocator(t), 0, method);
|
||||||
if (LIKELY(t->exception == 0)) {
|
if (LIKELY(t->exception == 0)) {
|
||||||
void* ip;
|
void* ip;
|
||||||
continuation = makeCurrentContinuation
|
void* base;
|
||||||
|
void* stack;
|
||||||
|
unsigned oldArgumentFootprint;
|
||||||
|
t->continuation = makeCurrentContinuation
|
||||||
(t, &ip, &base, &stack, &oldArgumentFootprint);
|
(t, &ip, &base, &stack, &oldArgumentFootprint);
|
||||||
|
|
||||||
|
callWithContinuation
|
||||||
|
(t, method, receiver, t->continuation, base, stack,
|
||||||
|
oldArgumentFootprint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (LIKELY(t->exception == 0)) {
|
|
||||||
t->continuation = continuation;
|
|
||||||
callWithContinuation(t, method, receiver, continuation, base, stack,
|
|
||||||
oldArgumentFootprint);
|
|
||||||
} else {
|
|
||||||
unwind(t);
|
unwind(t);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
virtual void feedResultToContinuation(Thread* vmt, object continuation,
|
virtual void feedResultToContinuation(Thread* vmt, object continuation,
|
||||||
object result)
|
object result)
|
||||||
|
Loading…
Reference in New Issue
Block a user