This is the mail archive of the glibc-cvs@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]

GNU C Library master sources branch dj/malloc updated. glibc-2.23-560-g9c879c0


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, dj/malloc has been updated
       via  9c879c0b3140f891ac783e009d49ff8a907fcb9a (commit)
      from  f214e7297413a27c5809d5f04a296e2104df1f8f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=9c879c0b3140f891ac783e009d49ff8a907fcb9a

commit 9c879c0b3140f891ac783e009d49ff8a907fcb9a
Author: DJ Delorie <dj@delorie.com>
Date:   Wed Jul 20 21:18:10 2016 -0400

    Add note about the timing of recording an mremap event.

diff --git a/malloc/malloc.c b/malloc/malloc.c
index bc3f117..9753731 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -3736,6 +3736,13 @@ __libc_realloc (void *oldmem, size_t bytes)
       void *newmem;
 
 #if HAVE_MREMAP
+      /* There is no time when we own both the old and new pointers
+	 here, so we have no choice but to record the trace event in a
+	 way that might lead to an inversion.  This is a rare enough
+	 case that a double inversion is too likely to worry about,
+	 and the trace converter can fix a lone single inversion.  We
+	 choose to record it inside the 'if' because it's convient to
+	 us.  */
       newp = mremap_chunk (oldp, nb);
       if (newp)
 	{

-----------------------------------------------------------------------

Summary of changes:
 malloc/malloc.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


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