summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Kernel/Process.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index d434b37738..04959e4203 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -76,9 +76,9 @@ UNMAP_AFTER_INIT void Process::initialize()
next_pid.store(0, AK::MemoryOrder::memory_order_release);
- hostname().with_exclusive([&](auto& name) {
- name = "courage";
- });
+ // Note: This is called before scheduling is initialized, and before APs are booted.
+ // So we can "safely" bypass the lock here.
+ reinterpret_cast<String&>(hostname()) = "courage";
create_signal_trampoline();
}