We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0230d61 commit e7d7d48Copy full SHA for e7d7d48
src/alloc/isolated_alloc.rs
@@ -165,6 +165,8 @@ impl IsolatedAlloc {
165
self.dealloc_multi_page(ptr, layout);
166
}
167
} else {
168
+ // Find the page this allocation belongs to.
169
+ // This could be made faster if the list was sorted -- the allocator isn't fully optimized at the moment.
170
let pinfo = std::iter::zip(&mut self.page_ptrs, &mut self.page_infos)
171
.find(|(page, _)| page.addr() == page_addr);
172
let Some((_, pinfo)) = pinfo else {
0 commit comments