[PATCH] elf: Remove __glibc_likely from _dl_sort_maps
Wilco Dijkstra
Wilco.Dijkstra@arm.com
Mon Aug 17 15:52:11 GMT 2026
Hi Litenglong,
> _dl_sort_maps is only called during shared object loading and
> unloading, not on any hot path. The branch predictor hint has no
> measurable benefit, and removing it simplifies the code and avoids
> future maintenance when the default algorithm changes.
>
> Suggested-by: Wilco Dijkstra <wilco.dijkstra@arm.com>
LGTM.
Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
Cheers,
Wilco
More information about the Libc-alpha
mailing list