]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
malloc: Correct the documentation of the top_pad default
authorFlorian Weimer <fweimer@redhat.com>
Thu, 4 Aug 2022 08:24:47 +0000 (10:24 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 4 Aug 2022 15:20:48 +0000 (17:20 +0200)
DEFAULT_TOP_PAD is defined as 131072 in
sysdeps/generic/malloc-machine.h.

elf/dl-tunables.list
elf/tst-rtld-list-tunables.exp
manual/tunables.texi

index e6a56b307053a5f9e443f6cebf6c50c25cb559cc..e925590c36dd2f229e5eb528a46eccc4ee43243f 100644 (file)
@@ -42,6 +42,7 @@ glibc {
       type: SIZE_T
       env_alias: MALLOC_TOP_PAD_
       security_level: SXID_IGNORE
+      default: 131072
     }
     perturb {
       type: INT_32
index cdfdb56a947490087ffb64699e52c9e208eb241b..2233ea9c7c8467a08b7a687ce420c7081ad3fce1 100644 (file)
@@ -9,7 +9,7 @@ glibc.malloc.perturb: 0 (min: 0, max: 255)
 glibc.malloc.tcache_count: 0x0 (min: 0x0, max: 0x[f]+)
 glibc.malloc.tcache_max: 0x0 (min: 0x0, max: 0x[f]+)
 glibc.malloc.tcache_unsorted_limit: 0x0 (min: 0x0, max: 0x[f]+)
-glibc.malloc.top_pad: 0x0 (min: 0x0, max: 0x[f]+)
+glibc.malloc.top_pad: 0x20000 (min: 0x0, max: 0x[f]+)
 glibc.malloc.trim_threshold: 0x0 (min: 0x0, max: 0x[f]+)
 glibc.rtld.dynamic_sort: 2 (min: 1, max: 2)
 glibc.rtld.nns: 0x4 (min: 0x1, max: 0x10)
index 83cdcdac6dc70098b0408133d4a6f1987bd84eca..ffd50a3fe2bbd4cebfd2ccc4a984ffda0220179f 100644 (file)
@@ -143,7 +143,7 @@ number of bytes to retain when shrinking any of the arenas.  This provides the
 necessary hysteresis in heap size such that excessive amounts of system calls
 can be avoided.
 
-The default value of this tunable is @samp{0}.
+The default value of this tunable is @samp{131072} (128 KB).
 @end deftp
 
 @deftp Tunable glibc.malloc.perturb