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 9b71545 commit 5ace308Copy full SHA for 5ace308
src/alloc/isolated_alloc.rs
@@ -229,8 +229,9 @@ impl IsolatedAlloc {
229
pinfo.remove(idx);
230
}
231
232
- // Only 1 page might have been freed after a dealloc, so if it exists,
233
- // find it and free it (and adjust the vectors)
+ // This may have been the last allocation on this page. If so, free the entire page.
+ // FIXME: this can lead to threshold effects, we should probably add some form
234
+ // of hysteresis.
235
if pinfo.is_empty() {
236
// SAFETY: `self.page_size` is always a power of 2 and does not overflow an isize
237
let page_layout =
0 commit comments