Home
last modified time | relevance | path

Searched refs:EVPOOL_SIZE (Results 1 – 1 of 1) sorted by relevance

/f-stack/app/redis-5.0.5/src/
H A Devict.c52 #define EVPOOL_SIZE 16 macro
143 ep = zmalloc(sizeof(*ep)*EVPOOL_SIZE); in evictionPoolAlloc()
144 for (j = 0; j < EVPOOL_SIZE; j++) { in evictionPoolAlloc()
209 while (k < EVPOOL_SIZE && in evictionPoolPopulate()
212 if (k == 0 && pool[EVPOOL_SIZE-1].key != NULL) { in evictionPoolPopulate()
216 } else if (k < EVPOOL_SIZE && pool[k].key == NULL) { in evictionPoolPopulate()
221 if (pool[EVPOOL_SIZE-1].key == NULL) { in evictionPoolPopulate()
226 sds cached = pool[EVPOOL_SIZE-1].cached; in evictionPoolPopulate()
228 sizeof(pool[0])*(EVPOOL_SIZE-k-1)); in evictionPoolPopulate()
501 for (k = EVPOOL_SIZE-1; k >= 0; k--) { in freeMemoryIfNeeded()