mirror of
https://github.com/corda/corda.git
synced 2025-01-19 11:16:54 +00:00
set Thread::continuation before calling jumpAndInvoke in Rewind case of callContinuation
This commit is contained in:
parent
0a4e77ffa7
commit
9837528a3e
@ -31,7 +31,7 @@ vmCall();
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
const bool DebugCompile = true;
|
const bool DebugCompile = false;
|
||||||
const bool DebugNatives = false;
|
const bool DebugNatives = false;
|
||||||
const bool DebugCallTable = false;
|
const bool DebugCallTable = false;
|
||||||
const bool DebugMethodTree = false;
|
const bool DebugMethodTree = false;
|
||||||
@ -5498,7 +5498,9 @@ callContinuation(MyThread* t, object continuation, object result,
|
|||||||
action = Throw;
|
action = Throw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
action = Call;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
t->exception = makeIncompatibleContinuationException(t);
|
t->exception = makeIncompatibleContinuationException(t);
|
||||||
action = Throw;
|
action = Throw;
|
||||||
@ -5523,10 +5525,12 @@ callContinuation(MyThread* t, object continuation, object result,
|
|||||||
} break;
|
} break;
|
||||||
|
|
||||||
case Rewind: {
|
case Rewind: {
|
||||||
|
t->continuation = nextContinuation;
|
||||||
|
|
||||||
jumpAndInvoke
|
jumpAndInvoke
|
||||||
(t, rewindMethod(t), base, stack, oldArgumentFootprint,
|
(t, rewindMethod(t), base, stack, oldArgumentFootprint,
|
||||||
continuationContextBefore(t, continuationContext(t, nextContinuation)),
|
continuationContextBefore(t, continuationContext(t, nextContinuation)),
|
||||||
nextContinuation, result, exception);
|
continuation, result, exception);
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case Throw: {
|
case Throw: {
|
||||||
|
Loading…
Reference in New Issue
Block a user