Fix KShareMemory object leak

This commit is contained in:
Feng Chen 2021-09-25 23:01:53 +08:00
parent 7cd43b139a
commit 5fbfc4c19e
5 changed files with 106 additions and 3 deletions

View file

@ -34,6 +34,7 @@ class KernelCore;
class KPageTable;
class KResourceLimit;
class KThread;
class KSharedMemoryInfo;
class TLSPage;
struct CodeSet;
@ -448,6 +449,9 @@ private:
/// List of threads that are running with this process as their owner.
std::list<const KThread*> thread_list;
/// List of shared memory that are running with this process as their owner.
std::list<KSharedMemoryInfo*> shared_memory_list;
/// Address of the top of the main thread's stack
VAddr main_thread_stack_top{};