Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/jemalloc/dist/src When using default mutex type...
details:   https://anonhg.NetBSD.org/src/rev/bef0894ba260
branches:  trunk
changeset: 1010121:bef0894ba260
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri May 15 14:34:41 2020 +0000
description:
When using default mutex types, don't setup attributes for init.
diffstat:
 external/bsd/jemalloc/dist/src/mutex.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r e744ded79302 -r bef0894ba260 external/bsd/jemalloc/dist/src/mutex.c
--- a/external/bsd/jemalloc/dist/src/mutex.c    Fri May 15 14:30:23 2020 +0000
+++ b/external/bsd/jemalloc/dist/src/mutex.c    Fri May 15 14:34:41 2020 +0000
@@ -157,6 +157,9 @@
                        return true;
                }
        }
+#elif MALLOC_MUTEX_TYPE == PTHREAD_MUTEX_DEFAULT
+       if (pthread_mutex_init(&mutex->lock, NULL) == -1)
+               return true;
 #else
        pthread_mutexattr_t attr;
 
Home |
Main Index |
Thread Index |
Old Index