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 1926679 commit 0230d61Copy full SHA for 0230d61
src/alloc/isolated_alloc.rs
@@ -120,7 +120,9 @@ impl IsolatedAlloc {
120
if pinfo.domain_size() < idx_pinfo + size_pinfo {
121
break;
122
}
123
- let pred = !(idx_pinfo..idx_pinfo + size_pinfo).any(|idx| pinfo.contains(idx));
+ // FIXME: is there a more efficient way to check whether the entire range is unset
124
+ // in the bitset?
125
+ let range_avail = !(idx_pinfo..idx_pinfo + size_pinfo).any(|idx| pinfo.contains(idx));
126
if pred {
127
pinfo.insert_range(idx_pinfo..idx_pinfo + size_pinfo);
128
unsafe {
0 commit comments