Hi,
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@coresystems.de