mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 10:23:23 +00:00
Fix robust list iteartion bug
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
9e57db7d54
commit
7ee728e2c7
@ -92,7 +92,8 @@ impl<'a> Iterator for FutexIter<'a> {
|
||||
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 {
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user