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/include/jemalloc/internal Add a c...



details:   https://anonhg.NetBSD.org/src/rev/193f36ef4e20
branches:  trunk
changeset: 449355:193f36ef4e20
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 04 17:23:37 2019 +0000

description:
Add a c99 initializer

diffstat:

 external/bsd/jemalloc/dist/include/jemalloc/internal/mutex_prof.h |  13 ++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diffs (21 lines):

diff -r a2846be93ba0 -r 193f36ef4e20 external/bsd/jemalloc/dist/include/jemalloc/internal/mutex_prof.h
--- a/external/bsd/jemalloc/dist/include/jemalloc/internal/mutex_prof.h Mon Mar 04 17:23:10 2019 +0000
+++ b/external/bsd/jemalloc/dist/include/jemalloc/internal/mutex_prof.h Mon Mar 04 17:23:37 2019 +0000
@@ -96,4 +96,17 @@
        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 */



Home | Main Index | Thread Index | Old Index