Commit da022c2
authored
feat: add Clock2QPlus eviction algorithm (#314)
* feat: add Clock2QPlus eviction algorithm
* style: fix clang-format line length in Clock2QPlus.c
* fix: use PRIu64 for obj_id_t format specifier
* fix: address code review findings in Clock2QPlus
- comment corr_window_size_upper/lower_bound fields
- fix time_since_insertion type: int -> int64_t
- save obj_id before remove() to avoid potential UAF
* fix: validate strsep key/value are non-NULL in Clock2QPlus param parser
* test: add Clock2QPlus to test_evictionAlgo
* docs: note Clock2QPlus requires --ignore-obj-size1 parent f2f8b79 commit da022c2
7 files changed
Lines changed: 548 additions & 1 deletion
File tree
- libCacheSim
- bin/cachesim
- cache
- eviction
- include/libCacheSim
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
0 commit comments