fix residency set clearing (#2027)

This commit is contained in:
Awni Hannun 2025-03-30 16:27:26 -07:00 committed by GitHub
parent fe597e141c
commit b2d2b37888
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,6 +48,9 @@ int BufferCache::clear() {
int n_release = 0;
for (auto& [size, holder] : buffer_pool_) {
if (holder->buf) {
if (holder->buf->heap()) {
residency_set_.erase(holder->buf);
}
holder->buf->release();
n_release++;
}