]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Use new dependency sorting algorithm by default
authorFlorian Weimer <fweimer@redhat.com>
Tue, 14 Dec 2021 11:37:44 +0000 (12:37 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 14 Dec 2021 13:44:04 +0000 (14:44 +0100)
The default has to change eventually, and there are no known failures
that require a delay.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
NEWS
elf/dl-tunables.list
elf/tst-rtld-list-tunables.exp
manual/tunables.texi

diff --git a/NEWS b/NEWS
index b53f230cca2ea2e001ec59137c5b6f5db7d1bb2f..2aaece42f5891085baf5bf5344557000557b91af 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -60,9 +60,10 @@ Major new features:
   of the existing sorting algorithm when encountering particular circular
   object dependency cases.
 
-* A new tunable, glibc.rtld.dynamic_sort, can be used to select between the two
-  DSO sorting algorithms.  The default setting of '1' uses the current existing
-  algorithm, while a value of '2' selects the new DFS-based algorithm.
+* A new tunable, glibc.rtld.dynamic_sort, can be used to select between
+  the two DSO sorting algorithms.  The default setting of '2' uses the
+  new DFS-based algorithm.  The setting '1' switches to the old
+  algorithm used in glibc 2.33 and earlier.
 
 * ABI support for a new function '__memcmpeq'. '__memcmpeq' is meant
   to be used by compilers for optimizing usage of 'memcmp' when its
index 46ffb2378416f90fa14b5414f9a384f2c25fb207..ffcd7f18d4fafb9157ddbeabdcf5bf9329adc027 100644 (file)
@@ -162,7 +162,7 @@ glibc {
       type: INT_32
       minval: 1
       maxval: 2
-      default: 1
+      default: 2
     }
   }
 }
index 9bf572715f996ca649bbcdf29fda01666d7a8b85..44e4834cfb431633422a20e1139ac37e5bba5e5c 100644 (file)
@@ -10,6 +10,6 @@ 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.trim_threshold: 0x0 (min: 0x0, max: 0x[f]+)
-glibc.rtld.dynamic_sort: 1 (min: 1, max: 2)
+glibc.rtld.dynamic_sort: 2 (min: 1, max: 2)
 glibc.rtld.nns: 0x4 (min: 0x1, max: 0x10)
 glibc.rtld.optional_static_tls: 0x200 (min: 0x0, max: 0x[f]+)
index 5d50b90f64b14ae19936ad0057ba89f182f7b174..28ff502990c2a10f24eeccd326a4f6fee4871502 100644 (file)
@@ -318,7 +318,7 @@ value of @samp{2}, a different algorithm is used, which implements a
 topological sort through depth-first search, and does not exhibit the
 performance issues of @samp{1}.
 
-The default value of this tunable is @samp{1}.
+The default value of this tunable is @samp{2}.
 @end deftp
 
 @node Elision Tunables