Skip to content

Commit

Permalink
Kernel: Specify a lock rank for s_mm_lock
Browse files Browse the repository at this point in the history
  • Loading branch information
bgianfo authored and awesomekling committed Sep 7, 2021
1 parent 88c27fc commit abc523a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kernel/Memory/MemoryManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace Kernel::Memory {
// run. If we do, then Singleton would get re-initialized, causing
// the memory manager to be initialized twice!
static MemoryManager* s_the;
RecursiveSpinlock s_mm_lock;
RecursiveSpinlock s_mm_lock { LockRank::MemoryManager };

MemoryManager& MemoryManager::the()
{
Expand Down

0 comments on commit abc523a

Please sign in to comment.