Kernel: Mark a handful of things in Process.cpp READONLY_AFTER_INIT

This commit is contained in:
Andreas Kling 2021-02-14 17:39:25 +01:00
parent f0a1d9bfa5
commit 00107a0dc1
Notes: sideshowbarker 2024-07-18 22:19:01 +09:00

View file

@ -62,11 +62,11 @@ static void create_signal_trampoline();
RecursiveSpinLock g_processes_lock;
static Atomic<pid_t> next_pid;
InlineLinkedList<Process>* g_processes;
String* g_hostname;
Lock* g_hostname_lock;
HashMap<String, OwnPtr<Module>>* g_modules;
Region* g_signal_trampoline_region;
READONLY_AFTER_INIT InlineLinkedList<Process>* g_processes;
READONLY_AFTER_INIT String* g_hostname;
READONLY_AFTER_INIT Lock* g_hostname_lock;
READONLY_AFTER_INIT HashMap<String, OwnPtr<Module>>* g_modules;
READONLY_AFTER_INIT Region* g_signal_trampoline_region;
ProcessID Process::allocate_pid()
{