mirror of
https://github.com/corda/corda.git
synced 2025-06-16 22:28:15 +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:
@ -303,6 +303,10 @@ writeBootImage(Thread* t, FILE* out, BootImage* image, uint8_t* code,
|
|||||||
(t->m->heap->allocate(heapMapSize(HeapCapacity)));
|
(t->m->heap->allocate(heapMapSize(HeapCapacity)));
|
||||||
memset(heapMap, 0, 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);
|
collect(t, Heap::MajorCollection);
|
||||||
|
|
||||||
HeapWalker* heapWalker = makeHeapImage
|
HeapWalker* heapWalker = makeHeapImage
|
||||||
|
Reference in New Issue
Block a user