ref: bddbc28d0b4f0610b5ba48d2d8b05147a3b13b9b
parent: 9f2915dcd3abfde96228941ad74bdccad2455418
author: Ori Bernstein <[email protected]>
date: Thu Jan 14 10:06:03 EST 2021
objcache: remove impossible check. The check is both useless and wrong. Remove it.
--- a/pack.c
+++ b/pack.c
@@ -154,7 +154,7 @@
ref(o);
ncache++;
}
- while(ncache > cachemax && lrutail->prev != nil){
+ while(ncache > cachemax){
p = lrutail;
lrutail = p->prev;
lrutail->next = nil;