do a garbage collection in compile.cpp if throwing an exception that required creating a backup heap

This commit is contained in:
Joel Dice 2008-04-20 10:21:32 -06:00
parent 95e5f8203c
commit 61f866ce89

View File

@ -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: