Skip to content

Commit ef6fa06

Browse files
committed
Make it more clear
1 parent 9eea72c commit ef6fa06

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

libCacheSim/cache/eviction/S3FIFO.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,10 @@ static cache_obj_t *S3FIFO_insert(cache_t *cache, const request_t *req) {
265265
obj = main_fifo->insert(main_fifo, req);
266266
} else {
267267
/* insert into small fifo */
268-
// NOTE: Inserting an object whose size equals the entire cache size is NOT
269-
// allowed. Doing so would completely fill the cache, causing all existing
270-
// objects to be evicted. This scenario can occur frequently and is
271-
// undesirable.
268+
// NOTE: Inserting an object whose size equals the size of small fifo is
269+
// NOT allowed. Doing so would completely fill the cache, causing all
270+
// existing objects to be evicted. This scenario can occur frequently and
271+
// is undesirable.
272272
if (req->obj_size >= small_fifo->cache_size) {
273273
return NULL;
274274
}

0 commit comments

Comments
 (0)