MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / arena_unbind

Function arena_unbind

deps/jemalloc/src/jemalloc.c:407–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407static void
408arena_unbind(tsd_t *tsd, unsigned ind, bool internal) {
409 arena_t *arena;
410
411 arena = arena_get(tsd_tsdn(tsd), ind, false);
412 arena_nthreads_dec(arena, internal);
413
414 if (internal) {
415 tsd_iarena_set(tsd, NULL);
416 } else {
417 tsd_arena_set(tsd, NULL);
418 }
419}
420
421arena_tdata_t *
422arena_tdata_get_hard(tsd_t *tsd, unsigned ind) {

Callers 2

iarena_cleanupFunction · 0.70
arena_cleanupFunction · 0.70

Calls 3

arena_nthreads_decFunction · 0.70
arena_getFunction · 0.50
tsd_tsdnFunction · 0.50

Tested by

no test coverage detected