This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch dj/malloc updated. glibc-2.23-557-g2c5e3bf
- From: dj at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 19 Jul 2016 20:54:42 -0000
- Subject: GNU C Library master sources branch dj/malloc updated. glibc-2.23-557-g2c5e3bf
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 2c5e3bf401fa46ca2545820a68b4c2b5c1ee1bce (commit)
from b28259c68e49ce1c2cfd4092f1232cf04e9971d2 (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=2c5e3bf401fa46ca2545820a68b4c2b5c1ee1bce
commit 2c5e3bf401fa46ca2545820a68b4c2b5c1ee1bce
Author: DJ Delorie <dj@delorie.com>
Date: Tue Jul 19 16:53:49 2016 -0400
Fix trace window unmapping bug
We were recording window number, not trace count, resulting in
windows not getting unmapped.
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 82608e1..beaff40 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -1206,7 +1206,7 @@ __mtb_trace_entry (uint32_t type, size_t size, void *ptr1)
counter for the current thread window. */
if (__malloc_trace_last_num != -1)
{
- int old_window = TRACE_COUNT_TO_MAPPING_NUM (__malloc_trace_last_num);
+ int old_window = __malloc_trace_last_num;
int old_ref_count = catomic_exchange_and_add (&__malloc_trace_buffer[old_window].ref_count, -1);
/* W3. If that reference counter reached 0, unmap the window. */
if (old_ref_count == 1)
-----------------------------------------------------------------------
Summary of changes:
malloc/malloc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources