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

Function tcache_destroy_ctl

deps/jemalloc/src/ctl.c:2011–2029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2009}
2010
2011static int
2012tcache_destroy_ctl(tsd_t *tsd, const size_t *mib, size_t miblen,
2013 void *oldp, size_t *oldlenp, void *newp, size_t newlen) {
2014 int ret;
2015 unsigned tcache_ind;
2016
2017 WRITEONLY();
2018 tcache_ind = UINT_MAX;
2019 WRITE(tcache_ind, unsigned);
2020 if (tcache_ind == UINT_MAX) {
2021 ret = EFAULT;
2022 goto label_return;
2023 }
2024 tcaches_destroy(tsd, tcache_ind);
2025
2026 ret = 0;
2027label_return:
2028 return ret;
2029}
2030
2031/******************************************************************************/
2032

Callers

nothing calls this directly

Calls 1

tcaches_destroyFunction · 0.70

Tested by

no test coverage detected