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

Function sc_data_update_slab_size

deps/jemalloc/src/sc.c:294–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294void
295sc_data_update_slab_size(sc_data_t *data, size_t begin, size_t end, int pgs) {
296 assert(data->initialized);
297 for (int i = 0; i < data->nsizes; i++) {
298 sc_t *sc = &data->sc[i];
299 if (!sc->bin) {
300 break;
301 }
302 size_t reg_size = reg_size_compute(sc->lg_base, sc->lg_delta,
303 sc->ndelta);
304 if (begin <= reg_size && reg_size <= end) {
305 sc_data_update_sc_slab_size(sc, reg_size, pgs);
306 }
307 }
308}
309
310void
311sc_boot(sc_data_t *data) {

Callers 2

sc.cFile · 0.85
malloc_conf_init_helperFunction · 0.85

Calls 2

reg_size_computeFunction · 0.85

Tested by

no test coverage detected