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

Function tcache_flush_ctl

deps/jemalloc/src/ctl.c:1991–2009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1989}
1990
1991static int
1992tcache_flush_ctl(tsd_t *tsd, const size_t *mib, size_t miblen,
1993 void *oldp, size_t *oldlenp, void *newp, size_t newlen) {
1994 int ret;
1995 unsigned tcache_ind;
1996
1997 WRITEONLY();
1998 tcache_ind = UINT_MAX;
1999 WRITE(tcache_ind, unsigned);
2000 if (tcache_ind == UINT_MAX) {
2001 ret = EFAULT;
2002 goto label_return;
2003 }
2004 tcaches_flush(tsd, tcache_ind);
2005
2006 ret = 0;
2007label_return:
2008 return ret;
2009}
2010
2011static int
2012tcache_destroy_ctl(tsd_t *tsd, const size_t *mib, size_t miblen,

Callers

nothing calls this directly

Calls 1

tcaches_flushFunction · 0.70

Tested by

no test coverage detected