glibc:siddhesh/mmap-fallback

Last commit made on 2015-08-24
Get this branch:
git clone -b siddhesh/mmap-fallback https://git.launchpad.net/glibc

Branch merges

Branch information

Name:
siddhesh/mmap-fallback
Repository:
lp:glibc

Recent commits

db8629e... by Josef Bacik <email address hidden>

Don't fall back to mmap if the original arena is not corrupt

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.

c3b9ef8... by Siddhesh Poyarekar <email address hidden>

Don't use the main arena in retry path if it is corrupt

If allocation on a non-main arena fails, the main arena is used
without checking to see if it is corrupt. Add a check that avoids the
main arena if it is corrupt.

 * malloc/arena.c (arena_get_retry): Don't use main_arena if it is
 corrupt.

92a9b22... by Siddhesh Poyarekar <email address hidden>

Drop unused first argument from arena_get2

The arena pointer in the first argument to arena_get2 was used in the
old days before per-thread arenas. They're unused now and hence can
be dropped.

ChangeLog:

 * malloc/arena.c (arena_get2): Drop unused argument.
 (arena_lock): Adjust.
 (arena_get_retry): Likewise.

be48165... by Andreas Schwab <email address hidden>

Remove __ASSUME_IPC64

PowerPC has always used __IPC_64 like most other architectures, which
means that __ASSUME_IPC64 can be always true. Also, all other
architecture implementations that use the ipc syscall are effectively
identical to the generic version and can be removed.

1695cda... by Mike Frysinger

manual: skip build when perl is unavailable

Do not try to generate the manual when perl is unavailable. This
matches the behavior when makeinfo is unavailable. Otherwise the
install step fails when trying to generate the libm section since
it runs a perl script.

854e005... by Carlos Eduardo Seo <email address hidden>

powerpc: Fix memchr for powerpc32.

Fix a wrong #undef in memchr.c.

 * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
 '#undef memcpy' by '#undef memchr'.

502b91d... by Carlos Eduardo Seo <email address hidden>

powerpc: make memchr use memchr-power7.

In powerpc64, memchr was always pointing to the internal __GI_memchr
implementation. This patch fixes that and makes it use the
optimized POWER7 version when adequate.

 * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
 memchr not point to the internal __GI_memchr implementation.

e5dee2c... by "H.J. Lu" <email address hidden>

Revert "Add INLINE_SYSCALL_RETURN/INLINE_SYSCALL_ERROR_RETURN"

This reverts commit 0c5b8b5941e036dcaac69cecee9f01fdf9218e6e.

8c7c251... by "H.J. Lu" <email address hidden>

Revert "Fix a typo in linux lxstat.c"

This reverts commit e4ad5e722cec9a274cd84585d9c33f696e36f847.

e4ad5e7... by "H.J. Lu" <email address hidden>

Fix a typo in linux lxstat.c

 * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Fix a typo.