rts/BlockAlloc: Allow aligned allocation requests
authorÖmer Sinan Ağacan <omer@well-typed.com>
Mon, 5 Mar 2018 12:57:47 +0000 (15:57 +0300)
committerBen Gamari <ben@smart-cactus.org>
Wed, 19 Jun 2019 00:30:19 +0000 (20:30 -0400)
commit80a5d3e11acc58b69267ca940cfb5065cc149a29
tree4d2fbbece7f270db77fca21be00520844156e923
parentbb141114ad4e4eb6db66e212fa08d93257b99bbc
rts/BlockAlloc: Allow aligned allocation requests

This implements support for block group allocations which are aligned to
an integral number of blocks.

This will be used by the nonmoving garbage collector, which uses the
block allocator to allocate the segments which back its heap. These
segments are a fixed number of blocks in size, with each segment being
aligned to the segment size boundary. This allows us to easily find the
segment metadata stored at the beginning of the segment.
includes/rts/storage/Block.h
rts/sm/BlockAlloc.c