Prevent drop on AddrSpace

This commit is contained in:
Wildan M
2026-02-27 10:47:45 +07:00
parent d34090f352
commit c72e0a67f9
5 changed files with 62 additions and 30 deletions
+3 -1
View File
@@ -48,7 +48,9 @@ pub fn exit_this_context(excp: Option<syscall::Exception>, token: &mut CleanLock
// Files must be closed while context is valid so that messages can be passed
close_files.force_close_all(token);
drop(addrspace_opt);
if let Some(addrspace) = addrspace_opt {
addrspace.into_drop(token);
}
// TODO: Should status == Status::HardBlocked be handled differently?
let owner = {
let mut guard = context_lock.write(token.token());