From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] ACL: use setjmp/longjmp to handle memory allocation failure at build phase Date: Tue, 28 Apr 2015 11:57:58 +0200 Message-ID: <3795174.R42ZdTLc8c@xps13> References: <1424367859-28122-1-git-send-email-konstantin.ananyev@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Konstantin Ananyev Return-path: In-Reply-To: <1424367859-28122-1-git-send-email-konstantin.ananyev-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" > 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 Applied, thanks