about summary refs log tree commit diff
path: root/signal/sigrelse.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2015-08-24 13:02:30 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2015-08-24 14:37:58 +0530
commitdb8629e263caface76d0989979937ef09654e96f (patch)
treeee7e1a6433ea525ab7305af967c2b6ec65065fd6 /signal/sigrelse.c
parentc3b9ef8dfc83e9d17da5adc73709d2f7dfbbaf13 (diff)
downloadglibc-siddhesh/mmap-fallback.tar.gz
glibc-siddhesh/mmap-fallback.tar.xz
glibc-siddhesh/mmap-fallback.zip
Don't fall back to mmap if the original arena is not corrupt siddhesh/mmap-fallback
The new logic to find an uncontended non-corrupt arena misses a case
where the current arena is contended, but is not corrupt.  In the
degenerate case, this is the only arena.  In both cases, the logic
falls back to using mmap despite there being an available arena.

Attached patch by Josef Bacik makes sure that all arenas are indeed
corrupt before falling back to malloc.  Verified on x86_64 that the
testsuite does not regress.

	* malloc/arena.c (reused_arena): return NULL only if all
	arenas are corrupt.
Diffstat (limited to 'signal/sigrelse.c')
0 files changed, 0 insertions, 0 deletions