summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2016-11-21 01:44:07 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2016-11-21 01:44:07 +0000
commitf6413955bc689af8106455ad7933698ec48aead9 (patch)
treef1230f352850fac9dfb7eacede3c351d5d554eee /gnu
parentacbfc8ea207e0d650a15c323541354d72c7f67e8 (diff)
let pool page allocators advertise what sizes they can provide.
to keep things concise i let the multi page allocators provide multiple sizes of pages, but this feature was implicit inside pool_init and only usable if the caller of pool_init did not specify a page allocator. callers of pool_init can now suplly a page allocator that provides multiple page sizes. pool_init will try to fit 8 items onto a page still, but will scale its page size down until it fits into what the allocator provides. supported page sizes are specified as a bit field in the pa_pagesz member of a pool_allocator. setting the low bit in that word indicates that the pages can be aligned to their size.
Diffstat (limited to 'gnu')
0 files changed, 0 insertions, 0 deletions