Skip to content

Commit

Permalink
Fix undeleted events in cacheController prefetch handling
Browse files Browse the repository at this point in the history
  • Loading branch information
skuntz committed Sep 20, 2024
1 parent a6587a0 commit 61afecf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sst/elements/memHierarchy/cacheController.cc
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,14 @@ bool Cache::clockTick(Cycle_t time) {
if (accepted != maxRequestsPerCycle_ && processEvent(prefetchBuffer_.front(), false)) {
accepted++;
// Accepted prefetches are profiled in the coherence manager
prefetchBuffer_.pop();
} else {
statPrefetchDrop->addData(1);
coherenceMgr_->removeRequestRecord(prefetchBuffer_.front()->getID());
MemEventBase* ev = prefetchBuffer_.front();
prefetchBuffer_.pop();
delete ev;
}
prefetchBuffer_.pop();
}

// Push any events that need to be retried next cycle onto the retry buffer
Expand Down

0 comments on commit 61afecf

Please sign in to comment.