]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove --disable-experimental-malloc option
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 28 Mar 2023 18:46:34 +0000 (15:46 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 29 Mar 2023 17:33:06 +0000 (14:33 -0300)
It is the default since 2.26 and it has bitrotten over the years,
By using it multiple malloc tests fails:

  FAIL: malloc/tst-memalign-2
  FAIL: malloc/tst-memalign-2-malloc-hugetlb1
  FAIL: malloc/tst-memalign-2-malloc-hugetlb2
  FAIL: malloc/tst-memalign-2-mcheck
  FAIL: malloc/tst-mxfast-malloc-hugetlb1
  FAIL: malloc/tst-mxfast-malloc-hugetlb2
  FAIL: malloc/tst-tcfree2
  FAIL: malloc/tst-tcfree2-malloc-hugetlb1
  FAIL: malloc/tst-tcfree2-malloc-hugetlb2

Checked on x86_64-linux-gnu.

Reviewed-by: DJ Delorie <dj@redhat.com>
INSTALL
NEWS
config.make.in
configure
configure.ac
malloc/Makefile
manual/install.texi
scripts/build-many-glibcs.py

diff --git a/INSTALL b/INSTALL
index cc1bfe9cbbcfbbce4c6d27e595a8555245d59643..32535709d959068e7581d877e8d9e03695c710f8 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -258,12 +258,6 @@ if 'CFLAGS' is specified it must enable optimization.  For example:
      independently-maintained implementations of libcrypt.  It may
      become the default in a future release.
 
-'--disable-experimental-malloc'
-     By default, a per-thread cache is enabled in 'malloc'.  While this
-     cache can be disabled on a per-application basis using tunables
-     (set glibc.malloc.tcache_count to zero), this option can be used to
-     remove it from the build completely.
-
 '--disable-scv'
      Disable using 'scv' instruction for syscalls.  All syscalls will
      use 'sc' instead, even if the kernel supports 'scv'.  PowerPC only.
diff --git a/NEWS b/NEWS
index c54af824e05539aa50dbb300f4a0243eb53c1868..d5816923c6b2966401371683429a890a578d0ab2 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -30,6 +30,10 @@ Deprecated and removed features, and other changes affecting compatibility:
   alternatively stable kernels from versions 6.1.6, 5.15.87, 5.10.163,
   5.4.228, 4.19.270 or 4.14.303.
 
+* The --disable-experimental-malloc is no longer available.  The per-thread
+  cache can still be disable per-application using tunables
+  (glibc.malloc.tcache_count set to zero).
+
 Changes to build and runtime requirements:
 
   [Add changes to build and runtime requirements here]
index befcc226259f604970f1e47027869eb13dc40d01..dce93ecf7343701fb92d1a6e093724c9f75a87d2 100644 (file)
@@ -77,8 +77,6 @@ multi-arch = @multi_arch@
 
 mach-interface-list = @mach_interface_list@
 
-experimental-malloc = @experimental_malloc@
-
 memory-tagging = @memory_tagging@
 
 nss-crypt = @libc_cv_nss_crypt@
index c5a831e3cd6f45a9277c306c568c26b1e758b081..904fc689e792bd4237d2251d5e1db2639dfd2e09 100755 (executable)
--- a/configure
+++ b/configure
@@ -671,7 +671,6 @@ libc_cv_static_nss_crypt
 libc_cv_nss_crypt
 build_crypt
 memory_tagging
-experimental_malloc
 enable_werror
 all_warnings
 force_install
@@ -774,7 +773,6 @@ enable_kernel
 enable_all_warnings
 enable_werror
 enable_multi_arch
-enable_experimental_malloc
 enable_memory_tagging
 enable_crypt
 enable_nss_crypt
@@ -1441,8 +1439,6 @@ Optional Features:
   --disable-werror        do not build with -Werror
   --enable-multi-arch     enable single DSO with optimizations for multiple
                           architectures
-  --disable-experimental-malloc
-                          disable experimental malloc features
   --enable-memory-tagging enable memory tagging if supported by the
                           architecture [default=no]
   --disable-crypt         do not build nor install the passphrase hashing
@@ -3455,15 +3451,6 @@ else
 fi
 
 
-# Check whether --enable-experimental-malloc was given.
-if test "${enable_experimental_malloc+set}" = set; then :
-  enableval=$enable_experimental_malloc; experimental_malloc=$enableval
-else
-  experimental_malloc=yes
-fi
-
-
-
 # Check whether --enable-memory-tagging was given.
 if test "${enable_memory_tagging+set}" = set; then :
   enableval=$enable_memory_tagging; memory_tagging=$enableval
index 88a6a88220ebaebebed7b1a61b84064bd747cd28..48ca0d370741b95abdc862009662d8bc03d59341 100644 (file)
@@ -300,13 +300,6 @@ AC_ARG_ENABLE([multi-arch],
              [multi_arch=$enableval],
              [multi_arch=default])
 
-AC_ARG_ENABLE([experimental-malloc],
-             AS_HELP_STRING([--disable-experimental-malloc],
-                            [disable experimental malloc features]),
-             [experimental_malloc=$enableval],
-             [experimental_malloc=yes])
-AC_SUBST(experimental_malloc)
-
 AC_ARG_ENABLE([memory-tagging],
              AS_HELP_STRING([--enable-memory-tagging],
                             [enable memory tagging if supported by the architecture @<:@default=no@:>@]),
index dfb51d344c02b509032c90e7f22afe33a94f8260..f685fc6e6c37926d89c1d0f3abcead94f8771fad 100644 (file)
@@ -286,11 +286,7 @@ tst-malloc-usable-tunables-ENV = GLIBC_TUNABLES=glibc.malloc.check=3 \
 tst-mxfast-ENV = GLIBC_TUNABLES=glibc.malloc.tcache_count=0:glibc.malloc.mxfast=0
 
 CPPFLAGS-malloc-debug.c += -DUSE_TCACHE=0
-ifeq ($(experimental-malloc),yes)
 CPPFLAGS-malloc.c += -DUSE_TCACHE=1
-else
-CPPFLAGS-malloc.c += -DUSE_TCACHE=0
-endif
 # Uncomment this for test releases.  For public releases it is too expensive.
 #CPPFLAGS-malloc.o += -DMALLOC_DEBUG=1
 
index 60fca21aedc9b550e80a2757e64ae6e04987eae1..37986d8b0c73a90866d76cc05ddbbb90803025ef 100644 (file)
@@ -286,12 +286,6 @@ This option is for hackers and distributions experimenting with
 independently-maintained implementations of libcrypt.  It may become
 the default in a future release.
 
-@item --disable-experimental-malloc
-By default, a per-thread cache is enabled in @code{malloc}.  While
-this cache can be disabled on a per-application basis using tunables
-(set glibc.malloc.tcache_count to zero), this option can be used to
-remove it from the build completely.
-
 @item --disable-scv
 Disable using @code{scv} instruction for syscalls. All syscalls will use
 @code{sc} instead, even if the kernel supports @code{scv}. PowerPC only.
index 29c10c2916498be4dc29cf2dd7ea0aa9e8def254..9c5c77f42355551e698b86ce4f5b7a125d6580e9 100755 (executable)
@@ -447,7 +447,6 @@ class Context(object):
                                                '--disable-mathvec',
                                                '--disable-tunables',
                                                '--disable-crypt',
-                                               '--disable-experimental-malloc',
                                                '--disable-build-nscd',
                                                '--disable-nscd']},
                                       {'variant': 'no-pie',