mirror of
https://github.com/corda/corda.git
synced 2025-02-07 19:40:25 +00:00
do a garbage collection in compile.cpp if throwing an exception that required creating a backup heap
This commit is contained in:
parent
95e5f8203c
commit
61f866ce89
@ -4594,6 +4594,13 @@ invoke(Thread* thread, object method, ArgumentList* arguments)
|
||||
arguments->position, returnType);
|
||||
}
|
||||
|
||||
if (t->exception) {
|
||||
if (t->backupHeap) {
|
||||
collect(t, Heap::MinorCollection);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
object r;
|
||||
switch (returnCode) {
|
||||
case ByteField:
|
||||
|
Loading…
x
Reference in New Issue
Block a user