Skip to content

Commit b56289e

Browse files
committed
fixup comment
1 parent 195776a commit b56289e

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
@@ -68,8 +68,7 @@ impl IsolatedAlloc {
6868
fn huge_normalized_layout(layout: Layout, page_size: usize) -> Layout {
6969
// Allocate in page-sized chunks
7070
let size = layout.size().next_multiple_of(page_size);
71-
// Align probably *shouldn't* ever be greater than the page size,
72-
// but just in case
71+
// And make sure the align is at least one page
7372
let align = std::cmp::max(layout.align(), page_size);
7473
Layout::from_size_align(size, align).unwrap()
7574
}

0 commit comments

Comments
 (0)