mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
Kernel: Move new process registration out of Space spinlock scope
There appears to be no reason why the process registration needs to happen under the space spin lock. As the first thread is not started yet it should be completely uncontested, but it's still bad practice.
This commit is contained in:
parent
60a559af7e
commit
84b4b9447d
Notes:
sideshowbarker
2024-07-18 09:12:44 +09:00
Author: https://github.com/bgianfo
Commit: 84b4b9447d
Pull-request: https://github.com/SerenityOS/serenity/pull/8674
1 changed files with 2 additions and 2 deletions
|
@ -108,10 +108,10 @@ KResultOr<FlatPtr> Process::sys$fork(RegisterState& regs)
|
|||
if (region == m_master_tls_region.unsafe_ptr())
|
||||
child->m_master_tls_region = child_region;
|
||||
}
|
||||
|
||||
Process::register_new(*child);
|
||||
}
|
||||
|
||||
Process::register_new(*child);
|
||||
|
||||
PerformanceManager::add_process_created_event(*child);
|
||||
|
||||
ScopedSpinLock lock(g_scheduler_lock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue