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

Function arena_i_reset_ctl

deps/jemalloc/src/ctl.c:2186–2204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2184}
2185
2186static int
2187arena_i_reset_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,
2188 size_t *oldlenp, void *newp, size_t newlen) {
2189 int ret;
2190 unsigned arena_ind;
2191 arena_t *arena;
2192
2193 ret = arena_i_reset_destroy_helper(tsd, mib, miblen, oldp, oldlenp,
2194 newp, newlen, &arena_ind, &arena);
2195 if (ret != 0) {
2196 return ret;
2197 }
2198
2199 arena_reset_prepare_background_thread(tsd, arena_ind);
2200 arena_reset(tsd, arena);
2201 arena_reset_finish_background_thread(tsd, arena_ind);
2202
2203 return ret;
2204}
2205
2206static int
2207arena_i_destroy_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,

Callers

nothing calls this directly

Tested by

no test coverage detected