mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 21:21:50 +03:00
Kernel: Mark sys$map_time_page as not needing the big lock
All accesses to shared mutable data are already serialized behind the process address space spinlock.
This commit is contained in:
parent
0e564240a6
commit
0b14081ae1
Notes:
sideshowbarker
2024-07-17 06:35:23 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/0b14081ae1 Pull-request: https://github.com/SerenityOS/serenity/pull/18178 Reviewed-by: https://github.com/awesomekling ✅
@ -122,7 +122,7 @@ enum class NeedsBigProcessLock {
|
||||
S(listen, NeedsBigProcessLock::No) \
|
||||
S(lseek, NeedsBigProcessLock::No) \
|
||||
S(madvise, NeedsBigProcessLock::No) \
|
||||
S(map_time_page, NeedsBigProcessLock::Yes) \
|
||||
S(map_time_page, NeedsBigProcessLock::No) \
|
||||
S(mkdir, NeedsBigProcessLock::No) \
|
||||
S(mknod, NeedsBigProcessLock::No) \
|
||||
S(mmap, NeedsBigProcessLock::Yes) \
|
||||
|
@ -12,7 +12,7 @@ namespace Kernel {
|
||||
|
||||
ErrorOr<FlatPtr> Process::sys$map_time_page()
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this);
|
||||
TRY(require_promise(Pledge::stdio));
|
||||
|
||||
auto& vmobject = TimeManagement::the().time_page_vmobject();
|
||||
|
Loading…
Reference in New Issue
Block a user