| 635 | } |
| 636 | |
| 637 | static void updateSysAvailableMemory() { |
| 638 | if (g_pserver->force_eviction_percent) { |
| 639 | g_pserver->cron_malloc_stats.sys_available = getMemAvailable(); |
| 640 | } |
| 641 | } |
| 642 | |
| 643 | /* Check that memory usage is within the current "maxmemory" limit. If over |
| 644 | * "maxmemory", attempt to free memory by evicting data (if it's safe to do so). |
no test coverage detected