[PATCH] Document glibc.pthread.stack_hugetlb does nothing in recent kernels

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Wed Jan 22 12:23:15 GMT 2025



On 21/01/25 20:21, Cristian Rodríguez wrote:
> On Tue, Jan 21, 2025 at 4:22 PM Florian Weimer <fweimer@redhat.com> wrote:
> 
>> It should be phased out, yes.
> 
> So, shall I post a patch removing this tunable ? add a deprecation
> warning ( if there is such a way to inform the user it does not work?
> I have not checked)
> The docs also say this tunables are not ABI and that they might just go away..

Yes, I think it would be better to just remove the tunable.  If I understand
correctly, the issue was introduced with efa7df3e3bb5 (Linux 6.7) and then
fixed by c4608d1bf7c (Linux 6.8), so we have only one Linux release where this
tunable might make sense.

As a side note, the tunable madvise also fails to handle error (where it does
not deallocate the thread stack); so one more point to just remove it. 


More information about the Libc-alpha mailing list