mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
remove unnecessary exception checks from bootimage.cpp
This commit is contained in:
parent
e16d5f83af
commit
5cedcf7833
@ -409,35 +409,27 @@ writeBootImage2(Thread* t, FILE* out, BootImage* image, uint8_t* code,
|
|||||||
// runtime:
|
// runtime:
|
||||||
{ resolveSystemClass
|
{ resolveSystemClass
|
||||||
(t, root(t, Machine::BootLoader), makeByteArray(t, "[B"), true);
|
(t, root(t, Machine::BootLoader), makeByteArray(t, "[B"), true);
|
||||||
if (t->exception) return;
|
|
||||||
|
|
||||||
resolveSystemClass
|
resolveSystemClass
|
||||||
(t, root(t, Machine::BootLoader), makeByteArray(t, "[Z"), true);
|
(t, root(t, Machine::BootLoader), makeByteArray(t, "[Z"), true);
|
||||||
if (t->exception) return;
|
|
||||||
|
|
||||||
resolveSystemClass
|
resolveSystemClass
|
||||||
(t, root(t, Machine::BootLoader), makeByteArray(t, "[S"), true);
|
(t, root(t, Machine::BootLoader), makeByteArray(t, "[S"), true);
|
||||||
if (t->exception) return;
|
|
||||||
|
|
||||||
resolveSystemClass
|
resolveSystemClass
|
||||||
(t, root(t, Machine::BootLoader), makeByteArray(t, "[C"), true);
|
(t, root(t, Machine::BootLoader), makeByteArray(t, "[C"), true);
|
||||||
if (t->exception) return;
|
|
||||||
|
|
||||||
resolveSystemClass
|
resolveSystemClass
|
||||||
(t, root(t, Machine::BootLoader), makeByteArray(t, "[I"), true);
|
(t, root(t, Machine::BootLoader), makeByteArray(t, "[I"), true);
|
||||||
if (t->exception) return;
|
|
||||||
|
|
||||||
resolveSystemClass
|
resolveSystemClass
|
||||||
(t, root(t, Machine::BootLoader), makeByteArray(t, "[J"), true);
|
(t, root(t, Machine::BootLoader), makeByteArray(t, "[J"), true);
|
||||||
if (t->exception) return;
|
|
||||||
|
|
||||||
resolveSystemClass
|
resolveSystemClass
|
||||||
(t, root(t, Machine::BootLoader), makeByteArray(t, "[F"), true);
|
(t, root(t, Machine::BootLoader), makeByteArray(t, "[F"), true);
|
||||||
if (t->exception) return;
|
|
||||||
|
|
||||||
resolveSystemClass
|
resolveSystemClass
|
||||||
(t, root(t, Machine::BootLoader), makeByteArray(t, "[D"), true);
|
(t, root(t, Machine::BootLoader), makeByteArray(t, "[D"), true);
|
||||||
if (t->exception) return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
collect(t, Heap::MajorCollection);
|
collect(t, Heap::MajorCollection);
|
||||||
|
Loading…
Reference in New Issue
Block a user