summaryrefslogtreecommitdiff
path: root/Kernel/VM/Region.cpp
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2021-01-02 10:16:39 -0700
committerAndreas Kling <kling@serenityos.org>2021-01-02 20:56:35 +0100
commite3190bd144256b34c3044da26a5a5ce1c714f706 (patch)
treef16c647326cff947a4c9a989c2abf33f09c09489 /Kernel/VM/Region.cpp
parent4bc33ee3aedbb185af384675f856d9c718d7d01b (diff)
downloadserenity-e3190bd144256b34c3044da26a5a5ce1c714f706.zip
Revert "Kernel: Allocate shared memory regions immediately"
This reverts commit fe6b3f99d1f544715098182ce5bed71d67f266cf.
Diffstat (limited to 'Kernel/VM/Region.cpp')
-rw-r--r--Kernel/VM/Region.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/Kernel/VM/Region.cpp b/Kernel/VM/Region.cpp
index 52b29aad26..62ef18995e 100644
--- a/Kernel/VM/Region.cpp
+++ b/Kernel/VM/Region.cpp
@@ -282,12 +282,6 @@ bool Region::map_individual_page_impl(size_t page_index)
if (!page || (!is_readable() && !is_writable())) {
pte->clear();
} else {
- if (is_shared()) {
- // Shared memory should not be lazily populated!
- ASSERT(!page->is_shared_zero_page());
- ASSERT(!page->is_lazy_committed_page());
- }
-
pte->set_cache_disabled(!m_cacheable);
pte->set_physical_page_base(page->paddr().get());
pte->set_present(true);