diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-11 15:38:47 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-11 15:40:04 +0200 |
commit | 5254a320d8518f6b7c308648385a0b92680b16b1 (patch) | |
tree | 4dab2f1cffe21206da1531f8da5f56da412a61db /Kernel/VM/MemoryManager.cpp | |
parent | 560d037c41d97b4956b6e5551c758c01bbe71da2 (diff) | |
download | serenity-5254a320d8518f6b7c308648385a0b92680b16b1.zip |
Kernel: Remove use of copy_ref() in favor of regular RefPtr copies.
This is obviously more readable. If we ever run into a situation where
ref count churn is actually causing trouble in the future, we can deal with
it then. For now, let's keep it simple. :^)
Diffstat (limited to 'Kernel/VM/MemoryManager.cpp')
-rw-r--r-- | Kernel/VM/MemoryManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/VM/MemoryManager.cpp b/Kernel/VM/MemoryManager.cpp index 954bb871d1..adccf9a7a7 100644 --- a/Kernel/VM/MemoryManager.cpp +++ b/Kernel/VM/MemoryManager.cpp @@ -155,7 +155,7 @@ RefPtr<PhysicalPage> MemoryManager::allocate_page_table(PageDirectory& page_dire auto physical_page = allocate_supervisor_physical_page(); if (!physical_page) return nullptr; - page_directory.m_physical_pages.set(index, physical_page.copy_ref()); + page_directory.m_physical_pages.set(index, physical_page); return physical_page; } |