mirror of
https://github.com/corda/corda.git
synced 2025-01-09 06:23:04 +00:00
fix GC safety issue in bootimage.cpp
This commit is contained in:
parent
b7157c802a
commit
e4e0015005
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user