fix: synchronise threads' SPTs with locks

This commit is contained in:
2024-12-06 17:31:33 +00:00
parent eba8c1ffa8
commit 77fedd6666
4 changed files with 13 additions and 1 deletions

View File

@@ -371,7 +371,9 @@ process_exit (void)
hash_destroy (&cur->open_files, fd_cleanup);
/* Clean up the thread's supplemental page table. */
lock_acquire (&cur->pages_lock);
hash_destroy (&cur->pages, page_cleanup);
lock_release (&cur->pages_lock);
/* Close the executable file, implicitly allowing it to be written to. */
if (cur->exec_file != NULL)