[PATCH] malloc: Test various special cases related to allocation failures

Dmitry V. Levin ldv@altlinux.org
Tue Dec 29 17:19:00 GMT 2015


On Mon, Dec 28, 2015 at 08:42:50PM +0100, Florian Weimer wrote:
> This test case exercises unusual code paths in allocation functions,
> related to allocation failures.

LGTM.

[...]
> +  if (page_size != 4096)
> +    {
> +      allocation_size = page_size;
> +      run_allocation_functions ();
> +    }

Why this test is not needed for page_size == 4096?
It might worth a comment.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20151229/bb5a509d/attachment.sig>


More information about the Libc-alpha mailing list