This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2.2][BZ #11087] Use atomic operations to track memory
- From: Siddhesh Poyarekar <siddhesh at redhat dot com>
- To: OndÅej BÃlka <neleai at seznam dot cz>
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 30 Oct 2013 20:36:10 +0530
- Subject: Re: [PATCH v2.2][BZ #11087] Use atomic operations to track memory
- Authentication-results: sourceware.org; auth=none
- References: <20131017114140 dot GA24230 at domone dot podge> <20131018081535 dot GA5679 at domone dot podge> <20131025085352 dot GG23099 at spoyarek dot pnq dot redhat dot com> <20131025180728 dot GC21615 at domone dot podge> <20131028063236 dot GB1633 at spoyarek dot pnq dot redhat dot com> <20131030145215 dot GA15654 at domone dot podge>
On Wed, Oct 30, 2013 at 03:52:15PM +0100, OndÅej BÃlka wrote:
> + new = atomic_exchange_and_add (&mp_.mmapped_mem, new_size - size - offset) +
> + new_size - size - offset;
This should be:
new = (atomic_exchange_and_add (&mp_.mmapped_mem, new_size - size - offset)
+ new_size - size - offset);
Looks OK to me with that change.
Siddhesh