This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2.2][BZ #11087] Use atomic operations to track memory


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]