4 ms·
Looks like the code to bubble-sort the SYSINIT objects was committed a few months BEFORE this kernel qsort code was committed (late Aug 1995 vs early Nov 1995).
by canucker2016 3y ago
Looks like the code to bubble-sort the SYSINIT objects was committed a few months BEFORE this kernel qsort code was committed (late Aug 1995 vs early Nov 1995).
So that's why the sort-SYSINIT objects code didn't use qsort.
I'd also guess that there were fewer SYSINIT objects to sort back in 1995 than today.
see ~line 150 of sys/kern/init_main.c in https://github.com/freebsd/freebsd-src/commit/2b14f991e64ebe31ca31a1a41237061c22a753d0#diff-892b418520675d603d352b09af1db41d918281f57aa0042b4d76d7a94fb8d2d1 https://github.com/freebsd/freebsd-src/commit/2b14f991e64ebe...