From: Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
To: Konstantin Ananyev
<konstantin.ananyev-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: dev-VfR2kkLFssw@public.gmane.org
Subject: Re: [PATCH] ACL: use setjmp/longjmp to handle memory allocation failure at build phase
Date: Tue, 28 Apr 2015 11:57:58 +0200 [thread overview]
Message-ID: <3795174.R42ZdTLc8c@xps13> (raw)
In-Reply-To: <1424367859-28122-1-git-send-email-konstantin.ananyev-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> 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-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Applied, thanks
prev parent reply other threads:[~2015-04-28 9:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-19 17:44 [PATCH] ACL: use setjmp/longjmp to handle memory allocation failure at build phase Konstantin Ananyev
[not found] ` <1424367859-28122-1-git-send-email-konstantin.ananyev-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-04-28 9:57 ` Thomas Monjalon [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3795174.R42ZdTLc8c@xps13 \
--to=thomas.monjalon-pdr9zngts4eavxtiumwx3w@public.gmane.org \
--cc=dev-VfR2kkLFssw@public.gmane.org \
--cc=konstantin.ananyev-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.