Stewart Brodie
authored
Detail: When splitting a free block in order to satisfy an allocation request, don't split if the remaining free space falls below a specified threshold (<= 8 bytes) to avoid creating lots of tiny free blocks, but instead gift the extra 8 bytes to the newly allocated block. This should stop the worst case heap fragmentation seen with OS_Heap heaps (particular the Toolbox's dynamic area). Admin: Tested in Ursula desktop build. Version 5.44. Tagged as 'Kernel-5_44'