1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:37:36 +00:00

Kernel: Use bitfields in Region

This makes Region 4 bytes smaller and we can use bitfield initializers
since they are allowed in C++20. :^)
This commit is contained in:
Andreas Kling 2020-02-19 12:01:39 +01:00
parent d02c169851
commit f17c377a0c

View file

@ -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;
};