[dpdk-dev] [PATCH] ACL: use setjmp/longjmp to handle memory allocation failure at build phase

Thomas Monjalon thomas.monjalon at 6wind.com
Tue Apr 28 11:57:58 CEST 2015


> During build phase ACL doing quite a lot of memory allocations
> for relatively small temporary structures.
> In theory each of such allocation can fail, so we need to handle
> all these possible failures.
> That adds a lot of extra checks and makes the code harder to read and follow.
> To simplify the process, made changes to handle all such failures
> in one place.
> Note, that all that memory for temporary structures
> is freed at one go at the end of build phase.
> 
> Signed-off-by: Konstantin Ananyev <konstantin.ananyev at intel.com>

Applied, thanks



More information about the dev mailing list