Module Name:    src
Committed By:   joerg
Date:           Fri May 15 14:34:42 UTC 2020

Modified Files:
        src/external/bsd/jemalloc/dist/src: mutex.c

Log Message:
When using default mutex types, don't setup attributes for init.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/jemalloc/dist/src/mutex.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/jemalloc/dist/src/mutex.c
diff -u src/external/bsd/jemalloc/dist/src/mutex.c:1.2 src/external/bsd/jemalloc/dist/src/mutex.c:1.3
--- src/external/bsd/jemalloc/dist/src/mutex.c:1.2	Mon Mar  4 17:16:46 2019
+++ src/external/bsd/jemalloc/dist/src/mutex.c	Fri May 15 14:34:41 2020
@@ -157,6 +157,9 @@ malloc_mutex_init(malloc_mutex_t *mutex,
 			return true;
 		}
 	}
+#elif MALLOC_MUTEX_TYPE == PTHREAD_MUTEX_DEFAULT
+	if (pthread_mutex_init(&mutex->lock, NULL) == -1)
+		return true;
 #else
 	pthread_mutexattr_t attr;
 

Reply via email to