mirror of
https://github.com/corda/corda.git
synced 2025-02-12 13:45:48 +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);
|
arguments->position, returnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (t->exception) {
|
||||||
|
if (t->backupHeap) {
|
||||||
|
collect(t, Heap::MinorCollection);
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
object r;
|
object r;
|
||||||
switch (returnCode) {
|
switch (returnCode) {
|
||||||
case ByteField:
|
case ByteField:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user