Kernel: Move process termination status/signal into protected data

This commit is contained in:
Andreas Kling 2021-03-11 14:24:08 +01:00
commit 1608ef37d8
Notes: sideshowbarker 2024-07-18 21:31:21 +09:00
3 changed files with 16 additions and 7 deletions

View file

@ -121,6 +121,8 @@ protected:
VirtualAddress m_signal_trampoline;
Atomic<u32> m_thread_count { 0 };
IntrusiveList<Thread, &Thread::m_process_thread_list_node> m_thread_list;
u8 m_termination_status { 0 };
u8 m_termination_signal { 0 };
};
class ProcessBase : public ProtectedProcessBase {
@ -579,8 +581,6 @@ private:
};
Vector<FileDescriptionAndFlags> m_fds;
u8 m_termination_status { 0 };
u8 m_termination_signal { 0 };
mutable RecursiveSpinLock m_thread_list_lock;
const bool m_is_kernel_process;