File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 1- 792fc2b033aea7ea7b766e38bdc40f7d6bdce8c3
1+ 81a964c23ea4fe9ab52b4449bb166bf280035797
Original file line number Diff line number Diff line change @@ -145,10 +145,7 @@ impl IsolatedAlloc {
145145 if pinfo. domain_size ( ) < offset_pinfo + size_pinfo {
146146 break ;
147147 }
148- // FIXME: is there a more efficient way to check whether the entire range is unset
149- // in the bitset?
150- let range_avail = !( offset_pinfo..offset_pinfo + size_pinfo) . any ( |i| pinfo. contains ( i) ) ;
151- if range_avail {
148+ if !pinfo. contains_any ( offset_pinfo..offset_pinfo + size_pinfo) {
152149 pinfo. insert_range ( offset_pinfo..offset_pinfo + size_pinfo) ;
153150 // SAFETY: We checked the available bytes after `idx` in the call
154151 // to `domain_size` above and asserted there are at least `idx +
You can’t perform that action at this time.
0 commit comments