From f17c377a0cc7588b267a4248e302731bacc06bea Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 19 Feb 2020 12:01:39 +0100 Subject: [PATCH] Kernel: Use bitfields in Region This makes Region 4 bytes smaller and we can use bitfield initializers since they are allowed in C++20. :^) --- Kernel/VM/Region.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Kernel/VM/Region.h b/Kernel/VM/Region.h index 47a9aa7724..f71615b792 100644 --- a/Kernel/VM/Region.h +++ b/Kernel/VM/Region.h @@ -185,11 +185,11 @@ private: NonnullRefPtr m_vmobject; String m_name; u8 m_access { 0 }; - bool m_shared { false }; - bool m_user_accessible { false }; - bool m_cacheable { false }; - bool m_stack { false }; - bool m_mmap { false }; + bool m_shared : 1 { false }; + bool m_user_accessible : 1 { false }; + bool m_cacheable : 1 { false }; + bool m_stack : 1 { false }; + bool m_mmap : 1 { false }; mutable OwnPtr m_cow_map; };