This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/20284] malloc: Corrupt arena avoidance causes unnecessary mmap fallbacks
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sat, 12 Nov 2016 06:46:48 +0000
- Subject: [Bug malloc/20284] malloc: Corrupt arena avoidance causes unnecessary mmap fallbacks
- Auto-submitted: auto-generated
- References: <bug-20284-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20284
--- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
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, gentoo/2.23 has been updated
via 3f97c0cafa1d661fe2ffa946c215f613beb32cd6 (commit)
from cafa0319f8ff701b7edd56e3e244e79abcf84748 (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 -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3f97c0cafa1d661fe2ffa946c215f613beb32cd6
commit 3f97c0cafa1d661fe2ffa946c215f613beb32cd6
Author: Florian Weimer <fweimer@redhat.com>
Date: Tue Jun 21 21:29:21 2016 +0200
malloc: Avoid premature fallback to mmap [BZ #20284]
Before this change, the while loop in reused_arena which avoids
returning a corrupt arena would never execute its body if the selected
arena were not corrupt. As a result, result == begin after the loop,
and the function returns NULL, triggering fallback to mmap.
(cherry picked from commit a3b473373ee43a292f5ec68a7fda6b9cfb26a9b0)
(cherry picked from commit a69d26143b80cb1927481509279577c57bc22ba4)
-----------------------------------------------------------------------
Summary of changes:
malloc/arena.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.