mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 20:42:11 +02:00
Kernel: Add a comment about what the MM lock protects
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 08:13:43 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/c14dda14c4
@@ -58,6 +58,11 @@ ErrorOr<FlatPtr> page_round_up(FlatPtr x)
|
||||
// run. If we do, then Singleton would get re-initialized, causing
|
||||
// the memory manager to be initialized twice!
|
||||
static MemoryManager* s_the;
|
||||
|
||||
// The MM lock protects:
|
||||
// - all data members of MemoryManager
|
||||
// - the quickmap mechanism
|
||||
// - the PTE/PDE mapping mechanism
|
||||
RecursiveSpinlock s_mm_lock { LockRank::MemoryManager };
|
||||
|
||||
MemoryManager& MemoryManager::the()
|
||||
|
||||
Reference in New Issue
Block a user