Searched refs:witness (Results 1 - 10 of 10) sorted by relevance

/fuchsia/zircon/third_party/ulib/jemalloc/include/jemalloc/internal/
H A Dwitness_inlines.h5 bool witness_owner(tsd_t *tsd, const witness_t *witness);
6 void witness_assert_owner(tsdn_t *tsdn, const witness_t *witness);
7 void witness_assert_not_owner(tsdn_t *tsdn, const witness_t *witness);
9 void witness_lock(tsdn_t *tsdn, witness_t *witness);
10 void witness_unlock(tsdn_t *tsdn, witness_t *witness);
16 witness_owner(tsd_t *tsd, const witness_t *witness) argument
25 if (w == witness)
33 witness_assert_owner(tsdn_t *tsdn, const witness_t *witness) argument
43 if (witness->rank == WITNESS_RANK_OMIT)
46 if (witness_owner(tsd, witness))
52 witness_assert_not_owner(tsdn_t *tsdn, const witness_t *witness) argument
95 witness_lock(tsdn_t *tsdn, witness_t *witness) argument
136 witness_unlock(tsdn_t *tsdn, witness_t *witness) argument
[all...]
H A Dwitness_externs.h6 void witness_init(witness_t *witness, const char *name, witness_rank_t rank,
13 const witness_t *witness);
19 void witness_owner_error(const witness_t *witness);
25 void witness_not_owner_error(const witness_t *witness);
H A Dmutex_inlines.h16 witness_assert_not_owner(tsdn, &mutex->witness);
30 witness_lock(tsdn, &mutex->witness);
38 witness_unlock(tsdn, &mutex->witness);
59 witness_assert_owner(tsdn, &mutex->witness);
66 witness_assert_not_owner(tsdn, &mutex->witness);
H A Dmutex_structs.h21 witness_t witness; member in struct:malloc_mutex_s
H A Drtree_structs.h14 witness_t witness; member in struct:rtree_elm_witness_s
/fuchsia/zircon/third_party/ulib/jemalloc/src/
H A Dwitness.c5 witness_init(witness_t *witness, const char *name, witness_rank_t rank, argument
8 witness->name = name;
9 witness->rank = rank;
10 witness->comp = comp;
11 witness->opaque = opaque;
19 witness_lock_error(const witness_list_t *witnesses, const witness_t *witness) argument
27 malloc_printf(" %s(%u)\n", witness->name, witness->rank);
41 witness_owner_error(const witness_t *witness) argument
43 malloc_printf("<jemalloc>: Should own %s(%u)\n", witness
58 witness_not_owner_error(const witness_t *witness) argument
[all...]
H A Drtree.c183 witness_t *witness; local
188 witness = NULL;
194 if (rew->elm == NULL && witness == NULL) {
196 witness = &rew->witness;
197 witness_init(witness, "rtree_elm",
202 assert(witness != NULL);
203 return (witness);
217 return (&rew->witness);
223 rtree_elm_witness_dalloc(tsd_t *tsd, witness_t *witness, cons argument
247 witness_t *witness; local
260 witness_t *witness; local
273 witness_t *witness; local
280 rtree_elm_witness_dalloc(tsdn_tsd(tsdn), witness, elm); local
[all...]
H A Dmutex.c107 witness_init(&mutex->witness, name, rank, NULL, NULL);
129 if (malloc_mutex_init(mutex, mutex->witness.name,
130 mutex->witness.rank)) {
/fuchsia/zircon/third_party/ulib/jemalloc/test/unit/
H A Dwitness.c15 const witness_t *witness)
21 witness_owner_error_intercept(const witness_t *witness) argument
27 witness_not_owner_error_intercept(const witness_t *witness) argument
116 assert_false(saw_lock_error, "Unexpected witness lock error");
118 assert_true(saw_lock_error, "Expected witness lock error");
125 assert_false(saw_lock_error, "Unexpected witness lock error");
127 assert_true(saw_lock_error, "Expected witness lock error");
157 assert_false(saw_lock_error, "Unexpected witness lock error");
159 assert_true(saw_lock_error, "Expected witness lock error");
192 assert_false(saw_lock_error, "Unexpected witness loc
14 witness_lock_error_intercept(const witness_list_t *witnesses, const witness_t *witness) argument
[all...]
/fuchsia/zircon/third_party/ulib/jemalloc/
H A DMakefile.in116 $(srcroot)src/witness.c
198 $(srcroot)test/unit/witness.c \

Completed in 92 milliseconds