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

Function arena_bind

deps/memkind/src/jemalloc/src/jemalloc.c:369–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369static void
370arena_bind(tsd_t *tsd, unsigned ind, bool internal) {
371 arena_t *arena = arena_get(tsd_tsdn(tsd), ind, false);
372 arena_nthreads_inc(arena, internal);
373
374 if (internal) {
375 tsd_iarena_set(tsd, arena);
376 } else {
377 tsd_arena_set(tsd, arena);
378 }
379}
380
381void
382arena_migrate(tsd_t *tsd, unsigned oldind, unsigned newind) {

Callers 1

arena_choose_hardFunction · 0.70

Calls 3

arena_nthreads_incFunction · 0.70
arena_getFunction · 0.50
tsd_tsdnFunction · 0.50

Tested by

no test coverage detected