MCPcopy Create free account
hub / github.com/F-Stack/f-stack / tsd_data_init

Function tsd_data_init

app/redis-6.2.6/deps/jemalloc/src/tsd.c:66–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66static bool
67tsd_data_init(tsd_t *tsd) {
68 /*
69 * We initialize the rtree context first (before the tcache), since the
70 * tcache initialization depends on it.
71 */
72 rtree_ctx_data_init(tsd_rtree_ctxp_get_unsafe(tsd));
73
74 /*
75 * A nondeterministic seed based on the address of tsd reduces
76 * the likelihood of lockstep non-uniform cache index
77 * utilization among identical concurrent processes, but at the
78 * cost of test repeatability. For debug builds, instead use a
79 * deterministic seed.
80 */
81 *tsd_offset_statep_get(tsd) = config_debug ? 0 :
82 (uint64_t)(uintptr_t)tsd;
83
84 return tsd_tcache_enabled_data_init(tsd);
85}
86
87static void
88assert_tsd_data_cleanup_done(tsd_t *tsd) {

Callers 1

tsd_fetch_slowFunction · 0.85

Calls 2

rtree_ctx_data_initFunction · 0.85

Tested by

no test coverage detected