Fix residency set with user provided buffer (#3108)

This commit is contained in:
Awni Hannun
2026-02-06 16:38:36 -08:00
committed by GitHub
parent ef3fbc60a3
commit 8fe1d09207
+1
View File
@@ -226,6 +226,7 @@ void MetalAllocator::release(Buffer buffer) {
std::unique_lock lk(mutex_);
active_memory_ -= buf->length();
num_resources_--;
residency_set_.erase(buf);
lk.unlock();
auto pool = metal::new_scoped_memory_pool();
buf->release();