[coreboot] [PATCH]libpayload: more conservative pre-allocation scheme in memalign
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...
More information about the coreboot