From 71d94828a2fa807054ea8c01486667c4bd7649b1 Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Fri, 22 Apr 2016 21:27:17 -0700 Subject: [PATCH] Fix degenerate mb_write() compilation error. This resolves #375. --- include/jemalloc/internal/mb.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/jemalloc/internal/mb.h b/include/jemalloc/internal/mb.h index 81129d08..437c86f7 100644 --- a/include/jemalloc/internal/mb.h +++ b/include/jemalloc/internal/mb.h @@ -42,7 +42,7 @@ mb_write(void) : /* Inputs. */ : "memory" /* Clobbers. */ ); -#else +# else /* * This is hopefully enough to keep the compiler from reordering * instructions around this one. @@ -52,7 +52,7 @@ mb_write(void) : /* Inputs. */ : "memory" /* Clobbers. */ ); -#endif +# endif } #elif (defined(__amd64__) || defined(__x86_64__)) JEMALLOC_INLINE void @@ -104,7 +104,7 @@ mb_write(void) { malloc_mutex_t mtx; - malloc_mutex_init(&mtx, WITNESS_RANK_OMIT); + malloc_mutex_init(&mtx, "mb", WITNESS_RANK_OMIT); malloc_mutex_lock(NULL, &mtx); malloc_mutex_unlock(NULL, &mtx); }