Fix robust list iteartion bug

This commit is contained in:
Chen Chengjun
2024-07-25 17:14:46 +08:00
committed by Tate, Hongliang Tian
parent 9e57db7d54
commit 7ee728e2c7

View File

@ -92,7 +92,8 @@ impl<'a> Iterator for FutexIter<'a> {
return None; return None;
} }
while self.entry_ptr != &self.robust_list.list as *const _ as usize { let end_ptr = self.robust_list.list.next;
while self.entry_ptr != end_ptr || self.count == 0 {
if self.count == ROBUST_LIST_LIMIT { if self.count == ROBUST_LIST_LIMIT {
break; break;
} }