Refine mapping-related locks

This commit is contained in:
Chen Chengjun
2024-10-08 11:30:20 +08:00
committed by Tate, Hongliang Tian
parent 968389f550
commit e60b5b7649
4 changed files with 66 additions and 54 deletions

View File

@ -31,6 +31,7 @@ pub fn do_exit(thread: &Thread, posix_thread: &PosixThread, term_status: TermSta
futex_wake(*clear_ctid, 1, None)?;
*clear_ctid = 0;
}
drop(clear_ctid);
// exit the robust list: walk the robust list; mark futex words as dead and do futex wake
wake_robust_list(posix_thread, tid);