]> granicus.if.org Git - gc/commitdiff
Also enable the TSX workaround for i386 (Linux)
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Thu, 11 Sep 2014 21:06:46 +0000 (23:06 +0200)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 12 May 2015 07:32:05 +0000 (10:32 +0300)
* include/private/gcconfig.h (GLIBC_2_19_TSX_BUG): Define for
LINUX/I386 (if __GLIBC__).

include/private/gcconfig.h

index d667d36eb519a25733b4a64a8e0d6e41ed9907fa..b5ed075d387f9ee62c794aa17f857a89a5f2934b 100644 (file)
 #         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 <gnu/libc-version.h> /* for gnu_get_libc_version() */
+#       endif
 #   endif
 #   ifdef CYGWIN32
 #       define OS_TYPE "CYGWIN32"