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

Function tcache_create_ctl

deps/jemalloc/src/ctl.c:1973–1989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1971/******************************************************************************/
1972
1973static int
1974tcache_create_ctl(tsd_t *tsd, const size_t *mib, size_t miblen,
1975 void *oldp, size_t *oldlenp, void *newp, size_t newlen) {
1976 int ret;
1977 unsigned tcache_ind;
1978
1979 READONLY();
1980 if (tcaches_create(tsd, &tcache_ind)) {
1981 ret = EFAULT;
1982 goto label_return;
1983 }
1984 READ(tcache_ind, unsigned);
1985
1986 ret = 0;
1987label_return:
1988 return ret;
1989}
1990
1991static int
1992tcache_flush_ctl(tsd_t *tsd, const size_t *mib, size_t miblen,

Callers

nothing calls this directly

Calls 1

tcaches_createFunction · 0.70

Tested by

no test coverage detected