diff options
author | DJ Delorie <dj@delorie.com> | 2016-11-03 19:58:43 -0400 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2016-11-03 19:58:43 -0400 |
commit | ba163b353ee76e9dad24246cb07e47a6840cfbae (patch) | |
tree | 1ef5d932c94efc52628a7cbfde99ab3cf517ae6e /malloc/Makefile | |
parent | 6adaeadf95fa5cc68e92b07456bb82dbd85afd06 (diff) | |
download | glibc-ba163b353ee76e9dad24246cb07e47a6840cfbae.tar.gz glibc-ba163b353ee76e9dad24246cb07e47a6840cfbae.tar.xz glibc-ba163b353ee76e9dad24246cb07e47a6840cfbae.zip |
malloc per-thread cache, separated out
This is the per-thread cache feature of the dj/malloc branch, broken out as a separate feature for review. Enabled by default, use --disable-experimental-malloc to disable. mallopt() support for M_TCACHE_COUNT and M_TCACHE_MAX is added for tuning.
Diffstat (limited to 'malloc/Makefile')
-rw-r--r-- | malloc/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/malloc/Makefile b/malloc/Makefile index b8efcd68bc..94a96613ea 100644 --- a/malloc/Makefile +++ b/malloc/Makefile @@ -159,6 +159,9 @@ endif tst-mcheck-ENV = MALLOC_CHECK_=3 tst-malloc-usable-ENV = MALLOC_CHECK_=3 +ifeq ($(experimental-malloc),yes) +CPPFLAGS-malloc.c += -DUSE_TCACHE +endif # Uncomment this for test releases. For public releases it is too expensive. #CPPFLAGS-malloc.o += -DMALLOC_DEBUG=1 |