From: Jan Alexander Steffens (heftig) Date: Thu, 11 Sep 2014 21:06:46 +0000 (+0200) Subject: Also enable the TSX workaround for i386 (Linux) X-Git-Tag: gc7_4_4~100 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e91ab29a65c752db83d33edd3a54a1e4aac49b3c;p=gc Also enable the TSX workaround for i386 (Linux) * include/private/gcconfig.h (GLIBC_2_19_TSX_BUG): Define for LINUX/I386 (if __GLIBC__). --- diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index d667d36e..b5ed075d 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -1357,6 +1357,11 @@ # define PREFETCH_FOR_WRITE(x) \ __asm__ __volatile__ ("prefetchw %0" : : "m"(*(char *)(x))) # endif +# if defined(__GLIBC__) + /* Workaround lock elision implementation for some glibc. */ +# define GLIBC_2_19_TSX_BUG +# include /* for gnu_get_libc_version() */ +# endif # endif # ifdef CYGWIN32 # define OS_TYPE "CYGWIN32"