1177,1181c1177,1182
< // keep on looking until we have found required condition or
< // reached the end
< while (!(got_more_hits &&
< (got_bank_conflict || pageMgmt == Enums::close_adaptive)) &&
< p != queue.end()) {
---
> // keep on looking until we find a hit or reach the end of the queue
> // 1) if a hit is found, then both open and close adaptive policies keep
> // the page open
> // 2) if no hit is found, got_bank_conflict is set to true if a bank
> // conflict request is waiting in the queue
> while (!got_more_hits && p != queue.end()) {