mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
clear Machine::byteArrayMap before generating boot image since it will not be used when the image is loaded
This commit is contained in:
parent
1b8777aa6b
commit
7060a5d4f0
@ -303,6 +303,10 @@ writeBootImage(Thread* t, FILE* out, BootImage* image, uint8_t* code,
|
||||
(t->m->heap->allocate(heapMapSize(HeapCapacity)));
|
||||
memset(heapMap, 0, heapMapSize(HeapCapacity));
|
||||
|
||||
// this map will not be used when the bootimage is loaded, so
|
||||
// there's no need to preserve it:
|
||||
t->m->byteArrayMap = makeWeakHashMap(t, 0, 0);
|
||||
|
||||
collect(t, Heap::MajorCollection);
|
||||
|
||||
HeapWalker* heapWalker = makeHeapImage
|
||||
|
Loading…
Reference in New Issue
Block a user