Do not use the new TLS code for non-threaded builds even if USE_TLS is set
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Sun, 16 Sep 2018 10:43:36 +0000 (12:43 +0200)
committerGitHub <noreply@github.com>
Sun, 16 Sep 2018 10:43:36 +0000 (12:43 +0200)
Workaround for #1761 as that exposed a problem in the new code (which was intended to speed up multithreaded code only anyway).

driver/others/memory.c

index 9d4ab19..e73d53f 100644 (file)
@@ -73,7 +73,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 #include "common.h"
 
-#if defined(USE_TLS) 
+#if defined(USE_TLS) && defined(SMP)
 #define COMPILE_TLS
 #if defined(__GLIBC_PREREQ) 
 #if !__GLIBC_PREREQ(2,20)