[PATCH] nptl: Add glibc.pthread.stack_cache_size

Florian Weimer fweimer@redhat.com
Mon Jun 28 12:22:04 GMT 2021


* Andreas Schwab:

> On Jun 28 2021, Florian Weimer via Libc-alpha wrote:
>
>> diff --git a/nptl/nptl-stack.h b/nptl/nptl-stack.h
>> index a6bd8df77f..19d040431e 100644
>> --- a/nptl/nptl-stack.h
>> +++ b/nptl/nptl-stack.h
>> @@ -25,6 +25,9 @@
>>  #include <list.h>
>>  #include <stdbool.h>
>>  
>> +/* Maximum size in kB of cache.  40MiBi by default.  */
>> +extern size_t __nptl_stack_cache_maxsize attribute_hidden;
>
> Kilobytes or bytes?

Oh, looks like the original comment was wrong.  stackblock_size, among
other things, is measured in bytes.  I have changed it locally to:

/* Maximum size of the cache, in bytes.  40 MiB by default.  */

Thanks,
Florian



More information about the Libc-alpha mailing list