Module Name:    src
Committed By:   christos
Date:           Mon Mar  4 17:23:37 UTC 2019

Modified Files:
        src/external/bsd/jemalloc/dist/include/jemalloc/internal: mutex_prof.h

Log Message:
Add a c99 initializer


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
    src/external/bsd/jemalloc/dist/include/jemalloc/internal/mutex_prof.h

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/include/jemalloc/internal/mutex_prof.h
diff -u src/external/bsd/jemalloc/dist/include/jemalloc/internal/mutex_prof.h:1.1.1.1 src/external/bsd/jemalloc/dist/include/jemalloc/internal/mutex_prof.h:1.2
--- src/external/bsd/jemalloc/dist/include/jemalloc/internal/mutex_prof.h:1.1.1.1	Mon Mar  4 12:10:23 2019
+++ src/external/bsd/jemalloc/dist/include/jemalloc/internal/mutex_prof.h	Mon Mar  4 12:23:37 2019
@@ -96,4 +96,17 @@ typedef struct {
 	uint64_t		n_lock_ops;
 } mutex_prof_data_t;
 
+#define MUTEX_PROF_DATA_ZERO_INITIALIZER \
+	{ \
+		.tot_wait_time = NSTIME_ZERO_INITIALIZER, \
+		.max_wait_time = NSTIME_ZERO_INITIALIZER, \
+		.n_wait_times = 0, \
+		.n_spin_acquired = 0, \
+		.max_n_thds = 0, \
+		.n_waiting_thds = 0, \
+		.n_owner_switches = 0, \
+		.prev_owner = NULL, \
+		.n_lock_ops = 0, \
+	}
+
 #endif /* JEMALLOC_INTERNAL_MUTEX_PROF_H */

Reply via email to