| 509 | } |
| 510 | |
| 511 | void set_jemalloc_bg_thread(int enable) { |
| 512 | /* let jemalloc do purging asynchronously, required when there's no traffic |
| 513 | * after flushdb */ |
| 514 | char val = !!enable; |
| 515 | mallctl("background_thread", NULL, 0, &val, 1); |
| 516 | } |
| 517 | |
| 518 | int jemalloc_purge() { |
| 519 | /* return all unused (reserved) pages to the OS */ |
no outgoing calls
no test coverage detected