Add a mmap destroy function to cleanup all mmap hash table entries upon thread exit

This commit is contained in:
sBubshait
2024-12-04 15:14:02 +00:00
parent 1ce09a49a1
commit a2f46f3b72
3 changed files with 22 additions and 0 deletions

View File

@@ -397,6 +397,8 @@ thread_exit (void)
process_exit ();
#endif
mmap_destroy ();
/* Remove thread from all threads list, set our status to dying,
and schedule another process. That process will destroy us
when it calls thread_schedule_tail(). */