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

Function extent_hooks_set

app/redis-6.2.6/deps/jemalloc/src/extent.c:201–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201extent_hooks_t *
202extent_hooks_set(tsd_t *tsd, arena_t *arena, extent_hooks_t *extent_hooks) {
203 background_thread_info_t *info;
204 if (have_background_thread) {
205 info = arena_background_thread_info_get(arena);
206 malloc_mutex_lock(tsd_tsdn(tsd), &info->mtx);
207 }
208 extent_hooks_t *ret = base_extent_hooks_set(arena->base, extent_hooks);
209 if (have_background_thread) {
210 malloc_mutex_unlock(tsd_tsdn(tsd), &info->mtx);
211 }
212
213 return ret;
214}
215
216static void
217extent_hooks_assure_initialized(arena_t *arena,

Callers 1

arena_i_extent_hooks_ctlFunction · 0.85

Calls 4

malloc_mutex_lockFunction · 0.85
tsd_tsdnFunction · 0.85
base_extent_hooks_setFunction · 0.85
malloc_mutex_unlockFunction · 0.85

Tested by

no test coverage detected