| 497 | } |
| 498 | |
| 499 | void 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 | |
| 506 | int jemalloc_purge() { |
| 507 | /* return all unused (reserved) pages to the OS */ |
no test coverage detected