Decrease size of GC heap to allow more DAL allocs (#2246)
This commit is contained in:
committed by
Peli de Halleux
parent
b042009088
commit
acf462fb61
@ -28,8 +28,8 @@ MicroBitEvent lastEvent;
|
||||
void platform_init() {
|
||||
microbit_seed_random();
|
||||
seedRandom(microbit_random(0x7fffffff));
|
||||
if (device_heap_size(1))
|
||||
gcPreAllocateBlock(device_heap_size(1) - 4);
|
||||
if (device_heap_size(1) > NON_GC_HEAP_RESERVATION + 4)
|
||||
gcPreAllocateBlock(device_heap_size(1) - NON_GC_HEAP_RESERVATION);
|
||||
}
|
||||
|
||||
void platform_init();
|
||||
|
Reference in New Issue
Block a user