clear Machine::byteArrayMap before generating boot image since it will not be used when the image is loaded

This commit is contained in:
Joel Dice 2009-07-28 17:22:07 -06:00
parent 1b8777aa6b
commit 7060a5d4f0

View File

@ -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