[PATCH] Remove eloop-threshold.h
DJ Delorie
dj@redhat.com
Wed Mar 19 02:36:22 GMT 2025
Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
> On both Linux and Hurd the __eloop_threshold() is always a constant
> (40 and 32 respectively), so there is no need to always call
> __sysconf (_SC_SYMLOOP_MAX) for Linux case (!SYMLOOP_MAX). To avoid
> a name clash with gnulib, rename the new file min-eloop-threshold.h.
LGTM with two caveats:
1. We still #include <eloop-threshold.h> despite deleting it. I assume
this is for the case where it's part of gnulib, although we neither make
that explicit nor list stdlib/canonicalize.c as shared with gnulib
(gnulib's copy is significanly different than ours).
2. eloop-threshold.h is also mentioned here:
./benchtests/strcoll-inputs/filelist#en_US.UTF-8: eloop-threshold.h
./benchtests/strcoll-inputs/filelist#en_US.UTF-8: eloop-threshold.h
This will have to be fixed or the benchtests will fail.
I'd add "we should add a test to prove your assertion remains true in
the future" but the repercussions of getting it wrong are negligible.
Reviewed-by: DJ Delorie <dj@redhat.com>
More information about the Libc-alpha
mailing list