This commit is contained in:
GeeeekExplorer
2025-06-13 13:07:33 +08:00
parent 135d1b38a2
commit 59aa3ff57c
4 changed files with 4 additions and 4 deletions

View File

@@ -86,7 +86,7 @@ class BlockManager:
seq.block_table.append(block_id)
def deallocate(self, seq: Sequence):
for block_id in seq.block_table:
for block_id in reversed(seq.block_table):
block = self.blocks[block_id]
block.ref_count -= 1
if block.ref_count == 0: