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

Function experimental_hooks_remove_ctl

deps/jemalloc/src/ctl.c:3147–3162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3145}
3146
3147static int
3148experimental_hooks_remove_ctl(tsd_t *tsd, const size_t *mib, size_t miblen,
3149 void *oldp, size_t *oldlenp, void *newp, size_t newlen) {
3150 int ret;
3151 WRITEONLY();
3152 void *handle = NULL;
3153 WRITE(handle, void *);
3154 if (handle == NULL) {
3155 ret = EINVAL;
3156 goto label_return;
3157 }
3158 hook_remove(tsd_tsdn(tsd), handle);
3159 ret = 0;
3160label_return:
3161 return ret;
3162}
3163
3164/*
3165 * Output six memory utilization entries for an input pointer, the first one of

Callers

nothing calls this directly

Calls 2

hook_removeFunction · 0.85
tsd_tsdnFunction · 0.50

Tested by

no test coverage detected