initialize body of exception handler table for GC safety

This commit is contained in:
Joel Dice 2008-05-05 19:17:29 -06:00
parent 7dcd109567
commit 1cb9d0327a

View File

@ -3627,7 +3627,7 @@ translateExceptionHandlerTable(MyThread* t, Compiler* c, object code,
object newIndex = makeIntArray(t, length * 3, false); object newIndex = makeIntArray(t, length * 3, false);
PROTECT(t, newIndex); PROTECT(t, newIndex);
object newTable = makeArray(t, length + 1, false); object newTable = makeArray(t, length + 1, true);
PROTECT(t, newTable); PROTECT(t, newTable);
set(t, newTable, ArrayBody, newIndex); set(t, newTable, ArrayBody, newIndex);