This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add GLIBC_PTHREAD_ELISION_ENABLE tunable



On 09/16/2015 11:37 PM, Mike Frysinger wrote:
> On 11 Sep 2015 14:57, Paul E. Murphy wrote:
>> +  /* Check environment to see if we should enable LE.  */
>> +  for (; *environ != NULL; environ++)
>> +    if (strcmp (*environ, "GLIBC_PTHREAD_ELISION_ENABLE=yes") == 0)
>> +      __pthread_force_elision = __libc_enable_secure ? 0 : elision_available;
> 
> there should be a new internal header for checking the values of tunables so
> that we don't end up with lots of duplication (like this patch already does).
> for the functions that cannot call getenv, there should be a static inline
> function that they can call (which i imagine would look like this).

I don't disagree with your idea. However, such work impinges on the tunable
work by Siddhesh. My intention is the simplest scaffolding while we wait out
the tunables framework.

This patch attempts to answer the following outstanding community questions:

1. Should we be using a single envvar vs multiple?

2. Should we be using GLIBC_ vs. GNU_ prefix?

3. Does the manual page sufficiently document tunables?

AFAIK, we still lack consensus and input on 1 and 2.

BR,
Paul



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]