[PATCH] Add GLIBC_PTHREAD_ELISION_ENABLE tunable
Mike Frysinger
vapier@gentoo.org
Thu Sep 17 04:37:00 GMT 2015
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).
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150917/5ede770f/attachment.sig>
More information about the Libc-alpha
mailing list