Skip to content

Commit def283a

Browse files
authored
Update S3FIFO.c
1 parent 035d832 commit def283a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libCacheSim/cache/eviction/S3FIFO.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ static cache_obj_t *S3FIFO_insert(cache_t *cache, const request_t *req) {
267267
/* insert into small fifo */
268268
// NOTE: Inserting an object whose size equals the size of small fifo is
269269
// NOT allowed. Doing so would completely fill the small fifo, causing all
270-
// existing objects in small fifo to be evicted. This scenario can occur
271-
// frequently and is undesirable.
270+
// objects in small fifo to be evicted. This scenario may occur
271+
// when using a tiny cache size.
272272
if (req->obj_size >= small_fifo->cache_size) {
273273
return NULL;
274274
}

0 commit comments

Comments
 (0)