Allow allocating megablocks in allocAlignedGroupOnNode
authorÖmer Sinan Ağacan <omeragacan@gmail.com>
Mon, 10 Jun 2019 07:42:41 +0000 (10:42 +0300)
committerBen Gamari <ben@smart-cactus.org>
Wed, 19 Jun 2019 00:32:01 +0000 (20:32 -0400)
commitead67e400308d2ee48f20dd99e33ea03d906e3b2
treed2f196db50425028e99fdd37400f47e5c3faeb8b
parent59d32a9973a3170e2269acc4077fc5516797e044
Allow allocating megablocks in allocAlignedGroupOnNode

This is currently broken because freeGroup assumes integral number of
megablocks when freeing megablocks but we try to split the megablocks
returned by allocLargeChunkOnNode to smaller groups and free the rest.
rts/sm/BlockAlloc.c
testsuite/tests/rts/testblockalloc.c