MCPcopy Create free account
hub / github.com/F-Stack/f-stack / je_mallctl

Function je_mallctl

app/redis-6.2.6/deps/jemalloc/src/jemalloc.c:3053–3073  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3051}
3052
3053JEMALLOC_EXPORT int JEMALLOC_NOTHROW
3054je_mallctl(const char *name, void *oldp, size_t *oldlenp, void *newp,
3055 size_t newlen) {
3056 int ret;
3057 tsd_t *tsd;
3058
3059 LOG("core.mallctl.entry", "name: %s", name);
3060
3061 if (unlikely(malloc_init())) {
3062 LOG("core.mallctl.exit", "result: %d", EAGAIN);
3063 return EAGAIN;
3064 }
3065
3066 tsd = tsd_fetch();
3067 check_entry_exit_locking(tsd_tsdn(tsd));
3068 ret = ctl_byname(tsd, name, oldp, oldlenp, newp, newlen);
3069 check_entry_exit_locking(tsd_tsdn(tsd));
3070
3071 LOG("core.mallctl.exit", "result: %d", ret);
3072 return ret;
3073}
3074
3075JEMALLOC_EXPORT int JEMALLOC_NOTHROW
3076je_mallctlnametomib(const char *name, size_t *mibp, size_t *miblenp) {

Callers 8

mallctl_intFunction · 0.85
mallctl_stringFunction · 0.85
set_jemalloc_bg_threadFunction · 0.85
jemalloc_purgeFunction · 0.85
test_threadsFunction · 0.85
stats_general_printFunction · 0.85
stats_printFunction · 0.85

Calls 5

tsd_fetchFunction · 0.85
check_entry_exit_lockingFunction · 0.85
tsd_tsdnFunction · 0.85
ctl_bynameFunction · 0.85
malloc_initFunction · 0.70

Tested by 1

test_threadsFunction · 0.68