Lines Matching refs:tsd

133 	tsd_t tsd;  member
137 tsd_tsdn(tsd_t *tsd) { in tsd_tsdn() argument
138 return (tsdn_t *)tsd; in tsd_tsdn()
150 return &tsdn->tsd; in tsdn_tsd()
159 tsd_t *tsd_fetch_slow(tsd_t *tsd, bool internal);
160 void tsd_slow_update(tsd_t *tsd);
184 tsd_##n##p_get_unsafe(tsd_t *tsd) { \
185 return &tsd->use_a_getter_or_setter_instead_##n; \
193 tsd_##n##p_get(tsd_t *tsd) { \
194 assert(tsd->state == tsd_state_nominal || \
195 tsd->state == tsd_state_nominal_slow || \
196 tsd->state == tsd_state_reincarnated || \
197 tsd->state == tsd_state_minimal_initialized); \
198 return tsd_##n##p_get_unsafe(tsd); \
213 tsd_t *tsd = tsdn_tsd(tsdn); \
214 return (nt *)tsd_##n##p_get(tsd); \
222 tsd_##n##_get(tsd_t *tsd) { \
223 return *tsd_##n##p_get(tsd); \
231 tsd_##n##_set(tsd_t *tsd, t val) { \
232 assert(tsd->state != tsd_state_reincarnated && \
233 tsd->state != tsd_state_minimal_initialized); \
234 *tsd_##n##p_get(tsd) = val; \
240 tsd_assert_fast(tsd_t *tsd) { in tsd_assert_fast() argument
241 assert(!malloc_slow && tsd_tcache_enabled_get(tsd) && in tsd_assert_fast()
242 tsd_reentrancy_level_get(tsd) == 0); in tsd_assert_fast()
246 tsd_fast(tsd_t *tsd) { in tsd_fast() argument
247 bool fast = (tsd->state == tsd_state_nominal); in tsd_fast()
249 tsd_assert_fast(tsd); in tsd_fast()
257 tsd_t *tsd = tsd_get(init); in tsd_fetch_impl() local
259 if (!init && tsd_get_allocates() && tsd == NULL) { in tsd_fetch_impl()
262 assert(tsd != NULL); in tsd_fetch_impl()
264 if (unlikely(tsd->state != tsd_state_nominal)) { in tsd_fetch_impl()
265 return tsd_fetch_slow(tsd, minimal); in tsd_fetch_impl()
267 assert(tsd_fast(tsd)); in tsd_fetch_impl()
268 tsd_assert_fast(tsd); in tsd_fetch_impl()
270 return tsd; in tsd_fetch_impl()
282 tsd_t *tsd = tsd_fetch_min(); in tsd_internal_fetch() local
284 tsd->state = tsd_state_reincarnated; in tsd_internal_fetch()
286 return tsd; in tsd_internal_fetch()
295 tsd_nominal(tsd_t *tsd) { in tsd_nominal() argument
296 return (tsd->state <= tsd_state_nominal_max); in tsd_nominal()
309 tsd_rtree_ctx(tsd_t *tsd) { in tsd_rtree_ctx() argument
310 return tsd_rtree_ctxp_get(tsd); in tsd_rtree_ctx()