lru_get_new *can* return NULL
... and that doesn't necessarily mean that malloc() failed. We do *not* want to evict a heavy-hitter by an unfrequent element. Note: even the implementation currently in master *did* return NULL, so some parts of the code were just wrongly returning ENOMEM.
Showing with 9 additions and 10 deletions