mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-03 00:36:52 +03:00
Kernel: Don't hog MM lock in Memory::Region::clone()
We don't need to hold the MM lock across all of Region::clone().
This commit is contained in:
parent
08b4d8f0de
commit
f357fd91da
Notes:
sideshowbarker
2024-07-18 07:11:29 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/f357fd91da9
@ -54,8 +54,6 @@ OwnPtr<Region> Region::clone()
|
||||
{
|
||||
VERIFY(Process::current());
|
||||
|
||||
ScopedSpinLock lock(s_mm_lock);
|
||||
|
||||
if (m_shared) {
|
||||
VERIFY(!m_stack);
|
||||
if (vmobject().is_inode())
|
||||
|
Loading…
Reference in New Issue
Block a user