Skip to content

Commit 3628f0e

Browse files
nia-eRalfJung
andauthored
Update src/alloc/isolated_alloc.rs
Co-authored-by: Ralf Jung <post@ralfj.de>
1 parent 0c4b4e9 commit 3628f0e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/alloc/isolated_alloc.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,7 @@ impl IsolatedAlloc {
202202
self.page_ptrs
203203
)
204204
};
205-
// Since each bit of the bitset represents COMPRESSION_FACTOR bytes,
206-
// we need to divide by that when getting the indices
205+
// Mark this range as available in the page.
207206
let ptr_idx_pinfo = ptr_idx / COMPRESSION_FACTOR;
208207
let size_pinfo = size / COMPRESSION_FACTOR;
209208
for idx in ptr_idx_pinfo..ptr_idx_pinfo + size_pinfo {

0 commit comments

Comments
 (0)