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

Function set_jemalloc_bg_thread

app/redis-6.2.6/src/zmalloc.c:499–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499void set_jemalloc_bg_thread(int enable) {
500 /* let jemalloc do purging asynchronously, required when there's no traffic
501 * after flushdb */
502 char val = !!enable;
503 je_mallctl("background_thread", NULL, 0, &val, 1);
504}
505
506int jemalloc_purge() {
507 /* return all unused (reserved) pages to the OS */

Callers 2

updateJemallocBgThreadFunction · 0.85
InitServerLastFunction · 0.85

Calls 1

je_mallctlFunction · 0.85

Tested by

no test coverage detected