diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-19 12:01:39 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-19 12:03:11 +0100 |
commit | f17c377a0cc7588b267a4248e302731bacc06bea (patch) | |
tree | 4c2b53a7750c9d1eb62043101dbe556fc86f9839 /Kernel/VM/Region.h | |
parent | d02c16985140679ccf741405b3401d5fd14c0735 (diff) | |
download | serenity-f17c377a0cc7588b267a4248e302731bacc06bea.zip |
Kernel: Use bitfields in Region
This makes Region 4 bytes smaller and we can use bitfield initializers
since they are allowed in C++20. :^)
Diffstat (limited to 'Kernel/VM/Region.h')
-rw-r--r-- | Kernel/VM/Region.h | 10 |
1 files 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<VMObject> 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<Bitmap> m_cow_map; }; |