[coreboot] [PATCH]libpayload: more conservative pre-allocation scheme in memalign

Patrick Georgi patrick at georgi-clan.de
Mon Jan 18 14:42:43 CET 2010


attached patch changes the preallocation scheme in memalign from
"100 elements of the size of the size of the alignment, except if the
user requested more" to
"nearly 1kb worth of elements, except if the user requested more".

This should help with certain crash situations related to requesting 4kb
aligned memory (which tries to allocate 400kb), and still works towards
the purpose of this feature, namely optimizing the (not so rare) case of
lots of small allocations of small alignments.

Signed-off-by: Patrick Georgi <patrick.georgi at coresystems.de>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20100118-1-memalign.diff
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20100118/1d9f8103/attachment.ksh>

More information about the coreboot mailing list