fix GC safety issue in bootimage.cpp

This commit is contained in:
Joel Dice 2011-01-27 21:03:39 -07:00
parent b7157c802a
commit e4e0015005

View File

@ -407,29 +407,29 @@ writeBootImage2(Thread* t, FILE* out, BootImage* image, uint8_t* code,
// resolve primitive array classes in case they are needed at // resolve primitive array classes in case they are needed at
// runtime: // runtime:
{ resolveSystemClass { object name = makeByteArray(t, "[B");
(t, root(t, Machine::BootLoader), makeByteArray(t, "[B"), true); resolveSystemClass(t, root(t, Machine::BootLoader), name, true);
resolveSystemClass name = makeByteArray(t, "[Z");
(t, root(t, Machine::BootLoader), makeByteArray(t, "[Z"), true); resolveSystemClass(t, root(t, Machine::BootLoader), name, true);
resolveSystemClass name = makeByteArray(t, "[S");
(t, root(t, Machine::BootLoader), makeByteArray(t, "[S"), true); resolveSystemClass(t, root(t, Machine::BootLoader), name, true);
resolveSystemClass name = makeByteArray(t, "[C");
(t, root(t, Machine::BootLoader), makeByteArray(t, "[C"), true); resolveSystemClass(t, root(t, Machine::BootLoader), name, true);
resolveSystemClass name = makeByteArray(t, "[I");
(t, root(t, Machine::BootLoader), makeByteArray(t, "[I"), true); resolveSystemClass(t, root(t, Machine::BootLoader), name, true);
resolveSystemClass name = makeByteArray(t, "[J");
(t, root(t, Machine::BootLoader), makeByteArray(t, "[J"), true); resolveSystemClass(t, root(t, Machine::BootLoader), name, true);
resolveSystemClass name = makeByteArray(t, "[F");
(t, root(t, Machine::BootLoader), makeByteArray(t, "[F"), true); resolveSystemClass(t, root(t, Machine::BootLoader), name, true);
resolveSystemClass name = makeByteArray(t, "[D");
(t, root(t, Machine::BootLoader), makeByteArray(t, "[D"), true); resolveSystemClass(t, root(t, Machine::BootLoader), name, true);
} }
collect(t, Heap::MajorCollection); collect(t, Heap::MajorCollection);