summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorKuan-Wei Chiu <visitorckw@gmail.com>2024-05-27 23:30:09 +0300
committerAndrew Morton <akpm@linux-foundation.org>2024-06-25 08:25:02 +0300
commitf49ac9571b8f1de4dfcce941a936a4d19dd7bb8a (patch)
tree561c682f95b78cb409257ec76aa217e0bfce7490 /scripts/gdb/linux/utils.py
parent85fb11a87921a017e5551835eaaf58f9da173686 (diff)
downloadlinux-f49ac9571b8f1de4dfcce941a936a4d19dd7bb8a.tar.xz
lib/sort: fix outdated comment regarding glibc qsort()
The existing comment in lib/sort refers to glibc qsort() using quicksort. However, glibc qsort() no longer uses quicksort; it now uses mergesort and falls back to heapsort if memory allocation for mergesort fails. This makes the comment outdated and incorrect. Update the comment to refer to quicksort in general rather than glibc's implementation to provide accurate information about the comparisons and trade-offs without implying an outdated implementation. Link: https://lkml.kernel.org/r/20240527203011.1644280-3-visitorckw@gmail.com Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com> Cc: Ching-Chun (Jim) Huang <jserv@ccns.ncku.edu.tw> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions