From 922439a5d3629ae66b6120f84c2a2397b5b7fe51 Mon Sep 17 00:00:00 2001 From: Enrico Giordani Date: Thu, 14 Jan 2016 17:07:53 +0100 Subject: [PATCH] [Fix] Enabled jemalloc thread safety. Credit to @DavidADoran for reporting the problem https://github.com/MSOpenTech/redis/issues/376 and providing the code to reproduce the bug. --- deps/jemalloc-win/include/jemalloc/internal/mutex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/jemalloc-win/include/jemalloc/internal/mutex.h b/deps/jemalloc-win/include/jemalloc/internal/mutex.h index 8924b3eb..53becced 100644 --- a/deps/jemalloc-win/include/jemalloc/internal/mutex.h +++ b/deps/jemalloc-win/include/jemalloc/internal/mutex.h @@ -45,7 +45,7 @@ struct malloc_mutex_s { extern bool isthreaded; #else # undef isthreaded /* Undo private_namespace.h definition. */ -# define isthreaded false +# define isthreaded true #endif bool malloc_mutex_init(malloc_mutex_t *mutex); -- GitLab