summaryrefslogtreecommitdiff
path: root/Kernel/Process.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-14 17:39:25 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-14 18:12:00 +0100
commit00107a0dc110311ca8d079e3fb79530a1201d4a1 (patch)
tree6662c35895af99015ada6fcf487ac30fdabee7bc /Kernel/Process.cpp
parentf0a1d9bfa56fa950df4da4ac2d55c1ce61701332 (diff)
downloadserenity-00107a0dc110311ca8d079e3fb79530a1201d4a1.zip
Kernel: Mark a handful of things in Process.cpp READONLY_AFTER_INIT
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r--Kernel/Process.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index e3691e9dc2..d1675c2ee8 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -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()
{