From d5c3fafc4307c9b7a4c7d5cb381fcdbfad340bcc Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Thu, 6 Jul 2017 13:37:30 -0400 Subject: Add per-thread cache to malloc * config.make.in: Enable experimental malloc option. * configure.ac: Likewise. * configure: Regenerate. * manual/install.texi: Document it. * INSTALL: Regenerate. * malloc/Makefile: Likewise. * malloc/malloc.c: Add per-thread cache (tcache). (tcache_put): New. (tcache_get): New. (tcache_thread_freeres): New. (tcache_init): New. (__libc_malloc): Use cached chunks if available. (__libc_free): Initialize tcache if needed. (__libc_realloc): Likewise. (__libc_calloc): Likewise. (_int_malloc): Prefill tcache when appropriate. (_int_free): Likewise. (do_set_tcache_max): New. (do_set_tcache_count): New. (do_set_tcache_unsorted_limit): New. * manual/probes.texi: Document new probes. * malloc/arena.c: Add new tcache tunables. * elf/dl-tunables.list: Likewise. * manual/tunables.texi: Document them. * NEWS: Mention the per-thread cache. --- ChangeLog | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index ac598984e3..1c51b3be29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,31 @@ +2017-07-06 DJ Delorie + + * config.make.in: Enable experimental malloc option. + * configure.ac: Likewise. + * configure: Regenerate. + * manual/install.texi: Document it. + * INSTALL: Regenerate. + * malloc/Makefile: Likewise. + * malloc/malloc.c: Add per-thread cache (tcache). + (tcache_put): New. + (tcache_get): New. + (tcache_thread_freeres): New. + (tcache_init): New. + (__libc_malloc): Use cached chunks if available. + (__libc_free): Initialize tcache if needed. + (__libc_realloc): Likewise. + (__libc_calloc): Likewise. + (_int_malloc): Prefill tcache when appropriate. + (_int_free): Likewise. + (do_set_tcache_max): New. + (do_set_tcache_count): New. + (do_set_tcache_unsorted_limit): New. + * manual/probes.texi: Document new probes. + * malloc/arena.c: Add new tcache tunables. + * elf/dl-tunables.list: Likewise. + * manual/tunables.texi: Document them. + * NEWS: Mention the per-thread cache. + 2017-07-06 Joseph Myers * iconvdata/tst-loading.c (TIMEOUT): Define to 30. -- cgit v1.2.3-70-g09d2