Go to file
Wilco Dijkstra f88c59f465 Small tcache improvements
Change the tcache->counts[] entries to uint16_t - this removes
the limit set by char and allows a larger tcache.  Remove a few
redundant asserts.

bench-malloc-thread with 4 threads is ~15% faster on Cortex-A72.

Reviewed-by: DJ Delorie <dj@redhat.com>

	* malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
	(tcache_put): Remove redundant assert.
	(tcache_get): Remove redundant asserts.
	(__libc_malloc): Check tcache count is not zero.
	* manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.

(cherry picked from commit 1f50f2ad85)
2019-10-30 12:01:42 +01:00
argp
assert
benchtests
bits
catgets
ChangeLog.old
conform
crypt
csu
ctype
debug
dirent
dlfcn dlfcn: Guard __dlerror_main_freeres with __libc_once_get (once) [BZ#24476] 2019-05-16 15:19:44 +02:00
elf aarch64: add STO_AARCH64_VARIANT_PCS and DT_AARCH64_VARIANT_PCS 2019-07-10 15:49:37 +01:00
gmon
gnulib
grp
gshadow
hesiod
htl
hurd
iconv
iconvdata
include CVE-2016-10739: getaddrinfo: Fully parse IPv4 address strings [BZ #20018] 2019-02-04 21:36:37 +01:00
inet inet/tst-if_index-long: New test case for CVE-2018-19591 [BZ #23927] 2018-12-12 12:04:12 +01:00
intl intl: Do not return NULL on asprintf failure in gettext [BZ #24018] 2019-01-02 16:46:12 +01:00
io io: Remove copy_file_range emulation [BZ #24744] 2019-07-09 10:33:10 +02:00
libio libio: do not attempt to free wide buffers of legacy streams [BZ #24228] 2019-06-20 17:32:07 +00:00
locale
localedata ja_JP locale: Add entry for the new Japanese era [BZ #22964] 2019-04-03 18:23:14 -04:00
login
mach
malloc Small tcache improvements 2019-10-30 12:01:42 +01:00
manual Small tcache improvements 2019-10-30 12:01:42 +01:00
math Add XFAIL_ROUNDING_IBM128_LIBGCC to more fma() tests 2019-01-16 15:55:23 -02:00
mathvec
misc
nis
nptl RISC-V: Fix elfutils testsuite unwind failures. 2019-02-19 06:38:23 +01:00
nptl_db
nscd nscd: Do not use __inet_aton_exact@GLIBC_PRIVATE [BZ #20018] 2019-02-04 21:36:38 +01:00
nss CVE-2016-10739: getaddrinfo: Fully parse IPv4 address strings [BZ #20018] 2019-02-04 21:36:37 +01:00
po
posix posix: Fix large mmap64 offset for mips64n32 (BZ#24699) 2019-07-12 20:59:32 +00:00
pwd
resolv CVE-2016-10739: getaddrinfo: Fully parse IPv4 address strings [BZ #20018] 2019-02-04 21:36:37 +01:00
resource
rt
scripts
setjmp
shadow
signal
socket
soft-fp
stdio-common
stdlib
streams
string Improve performance of memmem 2019-09-13 15:19:26 +01:00
sunrpc
support nptl: Fix pthread_rwlock_try*lock stalls (Bug 23844) 2019-02-17 11:44:19 +01:00
sysdeps [AArch64] Add ifunc support for Ares 2019-09-06 18:49:02 +01:00
sysvipc
termios
time
timezone
wcsmbs
wctype
.gitattributes
.gitignore
abi-tags
aclocal.m4
ChangeLog Small tcache improvements 2019-10-30 12:01:42 +01:00
config.h.in
config.make.in
configure
configure.ac
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig Only build libm with -fno-math-errno (bug 24024) 2019-01-08 21:06:25 +01:00
Makefile
Makefile.in
Makerules
NEWS io: Remove copy_file_range emulation [BZ #24744] 2019-07-09 10:33:10 +02:00
o-iterator.mk
README
Rules
shlib-versions
test-skeleton.c
version.h

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arm-*-linux-gnueabi
	hppa-*-linux-gnu
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	ia64-*-linux-gnu
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see http://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at http://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see http://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.